Commit d509e51d by 高淑倩

modify: 老会员弹框

parent ceeac3ae
......@@ -15,7 +15,7 @@ Component({
value: [],
},
},
attached() {
attached() {
this.setData({
baseImgUrl: app.globalData.imageUrl
})
......@@ -63,17 +63,7 @@ Component({
isAuthorization: true
})
return false
}
// else if(userInfo && userInfo.member && userInfo.member.mobile && !userInfo.memberActivateStatus) {
// // userInfo 存在 手机号存在 未激活 跳转激活领卡页面
// this.setData({
// isAuthorizationActiveText:'新激活领卡',
// isAuthorization: true
// },()=> {
// wxService.openCard()
// return false
// })
// }
}
if (link.type == 2) {
// 触发父组件更新页面
......@@ -89,26 +79,26 @@ Component({
} else if (link.type == 4) {
wxService.router(`${currentClickType}`)
} else if (link.type == 5) {
// if(userInfo && userInfo.member && userInfo.member.mobile && !userInfo.memberActivateStatus) {
// this.setData({
// isAuthorizationActiveText:'新激活领卡',
// isAuthorizationType: 3,
// isAuthorization: true
// })
// } else {
// wxService.openCard()
// }
console.log('currentClickType', currentClickType)
if (currentClickType == 1) {
// wxService.openCardList()
wxService.openCard()
} else if (currentClickType == 2) {
wxService.openCard()
if (userInfo && userInfo.member && userInfo.member.mobile && !userInfo.memberActivateStatus) {
// 手机号存在 但未激活 跳转激活领卡页面 老用户
this.setData({
isAuthorizationActiveText: '新激活领卡',
isAuthorization: true,
isAuthorizationType: 3
}, () => {
return false
})
}
}
}
},
activeTocard(e){
if(e.detail){
activeTocard(e) {
if (e.detail) {
wxService.openCard()
}
}
......
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