Authored by 肖亚东

场景值获取错误修改:onShow中执行获取

... ... @@ -63,13 +63,14 @@ App({
yas = new Yas(this);
yas.report('YB_LAUNCH_APP');
let scene = options ? options.scene : '';
this.globalData.currentScene = scene;
},
onShow: function(options) {
udid.get(); // 生成 UDID
verify.gen(); // 此处返回是是 Promise,需要调用接口的业务,最好在 then 里边执行
let scene = options ? options.scene : '';
this.globalData.currentScene = scene;
// wx.getLocation({}); // 获取位置信息
wx.checkSession().then(() => { // 微信登录未过期
this.getWechatThirdSession();
... ...
... ... @@ -140,9 +140,7 @@ Page(Object.assign({
let limitProductCode = query.limitProductCode ? query.limitProductCode : '';
let originUid = parseInt(query.originUid ? query.originUid : '0', 10);
let originUnionID = query.originUnionID ? query.originUnionID : '';
let currentScene = app.globalData.currentScene;
let isGoApp = (currentScene == 1036 || currentScene == 1069 || currentScene == 1011) ? true : false;
let uid = app.getUid();
let scene = '';
... ... @@ -150,6 +148,8 @@ Page(Object.assign({
scene = query.scene;
}
let currentScene = app.globalData.currentScene;
let isGoApp = (currentScene == 1036 || currentScene == 1069) ? true : false;
let appParameter = `http://m.yohobuy.com?openby:yohobuy={\"action\":\"go.limitpurchase\",\"params\":{\"lp\":\"${limitProductCode}\"}}`;
this.setData({
... ...