Commit 742ab360 authored by wangxuelai's avatar wangxuelai

''

parent c19cba92
...@@ -200,6 +200,7 @@ App({ ...@@ -200,6 +200,7 @@ App({
}, },
setGlobalData (isOnLunch, params) { setGlobalData (isOnLunch, params) {
const {path, query, scene, shareTicket, referrerInfo} = params; const {path, query, scene, shareTicket, referrerInfo} = params;
console.log(isOnLunch, 'isOnLunch');
if (isOnLunch) { if (isOnLunch) {
this.globalData.originPage = ''; this.globalData.originPage = '';
this.globalData.originParams = ''; this.globalData.originParams = '';
......
...@@ -33,20 +33,26 @@ const staticLog = function () { ...@@ -33,20 +33,26 @@ const staticLog = function () {
let params = {}; let params = {};
const pageObject = pageParams.find(ele => ele.root == path); const pageObject = pageParams.find(ele => ele.root == path);
if (pageObject) { if (pageObject) {
switch (scene) { if (options.scene) {
case 1011: // 长按图片识别二维码 params = scenQueryGet(options.scene);
case 1013: // 扫描手机相册中选取的二维码 pageSourceId = params[pageObject.qrcode_source_id] || '';
case 1047: // 扫描小程序码 } else {
case 1048: // 长按图片识别小程序码 pageSourceId = options[pageObject.sharer_source_id] || '';
case 1049: // 扫描手机相册中选取的小程序码
params = scenQueryGet(options.scene);
pageSourceId = params[pageObject.qrcode_source_id] || '';
break;
// 清除分享链路的场景值
default:
pageSourceId = options[pageObject.sharer_source_id] || '';
break;
} }
// 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; 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