Commit b16296df by 高淑倩

modify: 手机号码

parent 7008ed97
...@@ -47,6 +47,8 @@ Component({ ...@@ -47,6 +47,8 @@ Component({
// navigateToMiniProgram:fail can only be invoked by user TAP gesture. // navigateToMiniProgram:fail can only be invoked by user TAP gesture.
// 更改数据问题 // 更改数据问题
let currentClickType = app.globalData.commonFunc.getLink(item.link.type, item) let currentClickType = app.globalData.commonFunc.getLink(item.link.type, item)
const userInfo = wx.getStorageSync('_baseUserInfo')
console.log('userInfo.member.mobile', userInfo.member.mobile)
// type==1 外部 不用弹 没有登录弹 // type==1 外部 不用弹 没有登录弹
if (link.type == 1) { if (link.type == 1) {
// 触发父组件更新页面 外部小程序 // 触发父组件更新页面 外部小程序
...@@ -59,8 +61,12 @@ Component({ ...@@ -59,8 +61,12 @@ Component({
isAuthorization: true isAuthorization: true
}) })
return false return false
} else if (userInfo && userInfo.member && !userInfo.member.mobile) {
wxService.openCard()
return false
} }
// wxService.openCard()
if (link.type == 2) { if (link.type == 2) {
// 触发父组件更新页面 // 触发父组件更新页面
wxService.nextTick(() => { wxService.nextTick(() => {
......
...@@ -48,6 +48,9 @@ Component({ ...@@ -48,6 +48,9 @@ Component({
isAuthorization: true isAuthorization: true
}) })
return false return false
} else if (userInfo && userInfo.member && !userInfo.member.mobile) {
wxService.openCard()
return false
} }
if (link.type == 2) { if (link.type == 2) {
......
...@@ -55,6 +55,9 @@ Component({ ...@@ -55,6 +55,9 @@ Component({
isAuthorization: true isAuthorization: true
}) })
return false return false
} else if (userInfo && userInfo.member && !userInfo.member.mobile) {
wxService.openCard()
return false
} }
if (link.type == 2) { if (link.type == 2) {
......
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