...
|
...
|
@@ -167,6 +167,12 @@ Page(Object.assign({ |
|
|
appParameter
|
|
|
});
|
|
|
|
|
|
let userInfo = app.getUserInfo();
|
|
|
if (!userInfo.wechat || !this.getUserWechatId()) {
|
|
|
this.goLogin({'login': '0', 'type': 'redirectTo'});
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
yas = new Yas(app); // 实例化埋点
|
|
|
|
|
|
this.initActionSheet();
|
...
|
...
|
@@ -552,7 +558,7 @@ Page(Object.assign({ |
|
|
let userInfo = app.getUserInfo();
|
|
|
|
|
|
if (!userInfo.wechat || !this.getUserWechatId()) {
|
|
|
this.goLogin(0);
|
|
|
this.goLogin({'login': '0'});
|
|
|
return;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -616,7 +622,7 @@ Page(Object.assign({ |
|
|
let userInfo = app.getUserInfo();
|
|
|
|
|
|
if (!userInfo.wechat || !this.getUserWechatId()) {
|
|
|
this.goLogin(0);
|
|
|
this.goLogin({'login': '0'});
|
|
|
return;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -778,7 +784,9 @@ Page(Object.assign({ |
|
|
});
|
|
|
},
|
|
|
|
|
|
goLogin(login = 1) {
|
|
|
goLogin(params) {
|
|
|
let login = parseInt(params['login']) || 1;
|
|
|
let type = params['type'] || 'navigateTo';
|
|
|
let data = {};
|
|
|
|
|
|
if (this.data.originUid) {
|
...
|
...
|
@@ -795,7 +803,8 @@ Page(Object.assign({ |
|
|
router.go('userCenter', {
|
|
|
referer: `/pages/product/detail/detail?${decodeURIComponent(stringify(data))}`,
|
|
|
login
|
|
|
});
|
|
|
},
|
|
|
type);
|
|
|
},
|
|
|
onPullDownRefresh: function() {
|
|
|
this.setData({
|
...
|
...
|
|