Commit ef2f3dca by 谢中龙

修改bug

parent 383e166b
......@@ -57,17 +57,6 @@ wxService.page({
});
return ;
}
const baseUserInfo = wx.getStorageSync('_baseUserInfo')
if(!baseUserInfo){
this.setData({
isAuthorization: false
});
return;
}
this.getPointDetail(this.data.id);
},
//弹出订阅莫泰关闭
......@@ -135,14 +124,15 @@ wxService.page({
const { result, data } = res.data
if (result == 0) {
wx.hideLoading();
const baseUserInfo = wx.getStorageSync('_baseUserInfo');
if(baseUserInfo){
let isUat = data.isUat;
if(isUat == 'y'){
let isTrial = baseUserInfo.member.trial ? baseUserInfo.member.trial : false;
if(!isTrial){
wxService.router(`/subPackage/page/pages/goToHome/goToHome`);
wx.redirectTo({
url: '/subPackage/page/pages/goToHome/goToHome',
});
}
}
}
......@@ -223,7 +213,7 @@ wxService.page({
},
//弹出原生提示框让用户去点击
showConfirmModal(id){
//先判断是否已经弹出服务通知了
let self = this;
if(this.showModal){
return ;
......@@ -339,6 +329,7 @@ wxService.page({
const { activityId } = this.data
wxService.router(`/subPackage/page/pages/pointGoodsList/pointGoodsList`).search({ activityId })
},
_closeDialog() {
const { id } = this.data
if (id) this.getPointDetail(id)
......@@ -391,6 +382,7 @@ wxService.page({
dialog
})
},
handleToGet() {
// 按钮防止短时间多次点击
const { countObj } = this.data
......@@ -481,8 +473,16 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
const baseUserInfo = wx.getStorageSync('_baseUserInfo')
if(!baseUserInfo){
this.setData({
isAuthorization: true
});
return;
}
this.getPointDetail(this.data.id);
},
......
......@@ -142,7 +142,7 @@
"id": 15,
"name": "集点详情",
"pathName": "pages/pointDetail/pointDetail",
"query": "scene=i%3DdYP6rbn100",
"query": "id=711939547193294848",
"scene": null
},
{
......
......@@ -133,7 +133,7 @@ class WXService extends Http {
const pages = getCurrentPages()
const perpage = pages[pages.length - 1]
perpage.onShow()
}, 2000)
}, 1000)
return Promise.resolve({ response })
}
}).catch(err => {
......
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