Commit a9061c0c by 高淑倩

add: 激活弹框条件判断

parent ce4d028b
...@@ -58,17 +58,17 @@ Component({ ...@@ -58,17 +58,17 @@ Component({
isAuthorization: true isAuthorization: true
}) })
return false return false
} else if(userInfo && userInfo.member && !userInfo.member.mobile) {
// userInfo 存在 手机号不存在 跳转激活领卡页面
this.setData({
isAuthorizationActiveText:'新激活领卡',
isAuthorization: true
},()=> {
wxService.openCard()
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) {
// 触发父组件更新页面 // 触发父组件更新页面
...@@ -78,28 +78,28 @@ Component({ ...@@ -78,28 +78,28 @@ Component({
} else if (link.type == 3) { } else if (link.type == 3) {
// 预览 // 预览
wx.previewImage({ wx.previewImage({
current: `https://images.unsplash.com/${currentClickType.imageUrl}`, // 当前显示图片的http链接 current: `http://testimg3.bigaka.com/${currentClickType.imageUrl}`, // 当前显示图片的http链接
urls: [`http://testimg3.bigaka.com/${currentClickType.link.url}`] // 需要预览的图片http链接列表 urls: [`http://testimg3.bigaka.com/${currentClickType.link.url}`] // 需要预览的图片http链接列表
}) })
} 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) { // if(userInfo && userInfo.member && userInfo.member.mobile && !userInfo.memberActivateStatus) {
this.setData({ // this.setData({
isAuthorizationActiveText:'新激活领卡', // isAuthorizationActiveText:'新激活领卡',
isAuthorizationType: 3, // isAuthorizationType: 3,
isAuthorization: true // isAuthorization: true
}) // })
} else { // } else {
wxService.openCard()
}
// if (currentClickType == 1) {
// // wxService.openCardList()
// wxService.openCard()
// } else if (currentClickType == 2) {
// wxService.openCard() // wxService.openCard()
// } // }
if (currentClickType == 1) {
// wxService.openCardList()
wxService.openCard()
} else if (currentClickType == 2) {
wxService.openCard()
}
} }
}, },
activeTocard(e){ activeTocard(e){
......
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