Commit 742ab360 authored by wangxuelai's avatar wangxuelai

''

parent c19cba92
......@@ -200,6 +200,7 @@ App({
},
setGlobalData (isOnLunch, params) {
const {path, query, scene, shareTicket, referrerInfo} = params;
console.log(isOnLunch, 'isOnLunch');
if (isOnLunch) {
this.globalData.originPage = '';
this.globalData.originParams = '';
......
......@@ -33,20 +33,26 @@ const staticLog = function () {
let params = {};
const pageObject = pageParams.find(ele => ele.root == path);
if (pageObject) {
switch (scene) {
case 1011: // 长按图片识别二维码
case 1013: // 扫描手机相册中选取的二维码
case 1047: // 扫描小程序码
case 1048: // 长按图片识别小程序码
case 1049: // 扫描手机相册中选取的小程序码
params = scenQueryGet(options.scene);
pageSourceId = params[pageObject.qrcode_source_id] || '';
break;
// 清除分享链路的场景值
default:
pageSourceId = options[pageObject.sharer_source_id] || '';
break;
if (options.scene) {
params = scenQueryGet(options.scene);
pageSourceId = params[pageObject.qrcode_source_id] || '';
} else {
pageSourceId = options[pageObject.sharer_source_id] || '';
}
// switch (scene) {
// case 1011: // 长按图片识别二维码
// case 1013: // 扫描手机相册中选取的二维码
// case 1047: // 扫描小程序码
// case 1048: // 长按图片识别小程序码
// case 1049: // 扫描手机相册中选取的小程序码
// params = scenQueryGet(options.scene);
// pageSourceId = params[pageObject.qrcode_source_id] || '';
// break;
// // 清除分享链路的场景值
// default:
// pageSourceId = options[pageObject.sharer_source_id] || '';
// break;
// }
}
return pageSourceId;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment