...
|
...
|
@@ -52,11 +52,13 @@ Page(Object.assign({ |
|
|
* 页面的初始数据
|
|
|
*/
|
|
|
data: {
|
|
|
isGoApp: false,
|
|
|
tabIdx: '',
|
|
|
showAuth: false,
|
|
|
actPrizeId: '',
|
|
|
shareUid: 0,
|
|
|
scene: '',
|
|
|
appParameter: '',
|
|
|
myPrizeCount: 0,
|
|
|
product: {},
|
|
|
avatars: [],
|
...
|
...
|
@@ -111,6 +113,10 @@ Page(Object.assign({ |
|
|
|
|
|
let data = {};
|
|
|
|
|
|
let currentScene = app.globalData.currentScene;
|
|
|
let isGoApp = (currentScene == 1036 || currentScene == 1069) ? true : false;
|
|
|
data.isGoApp = isGoApp;
|
|
|
|
|
|
if (options.shareUid) {
|
|
|
data.shareUid = options.shareUid;
|
|
|
}
|
...
|
...
|
@@ -123,13 +129,15 @@ Page(Object.assign({ |
|
|
data.actPrizeId = options.actPrizeId;
|
|
|
}
|
|
|
|
|
|
let appParameter = `https://m.yohobuy.com?openby:yohobuy={"action":"go.h5","params":{"param":{},"url":"https://m.yohobuy.com/activity/yoluck/${data.actPrizeId}.html"}}`;
|
|
|
data.appParameter = appParameter;
|
|
|
|
|
|
if (options.scene && options.scene.length === 32) {
|
|
|
data.scene = options.scene;
|
|
|
}
|
|
|
|
|
|
this.setData(data);
|
|
|
|
|
|
|
|
|
new app.WeToast();
|
|
|
|
|
|
this._getDetailBanner();
|
...
|
...
|
@@ -588,6 +596,13 @@ Page(Object.assign({ |
|
|
})
|
|
|
}
|
|
|
},
|
|
|
launchAppError: function (e) {
|
|
|
wx.showToast({
|
|
|
title: '打开失败!您可能未安装Yoho!Buy官方APP,请下载后再尝试。',
|
|
|
icon: 'none',
|
|
|
duration: 3000
|
|
|
})
|
|
|
},
|
|
|
//跳转到登录页面
|
|
|
loginAndRegisterTapped(needBind) {
|
|
|
let that = this;
|
...
|
...
|
|