Commit d509e51d by 高淑倩

modify: 老会员弹框

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