Browse Source

update user tapItem

master
fanp 6 years ago
parent
commit
3bfe6c920f
  1. 5
      pages/user/index.js

5
pages/user/index.js

@ -35,7 +35,6 @@ Page({
}, },
onShow: function () { onShow: function () {
console.log('啦啦啦')
this.getUserInfo() this.getUserInfo()
if (store.hasPhone()) { if (store.hasPhone()) {
console.log('已经绑定手机号码') console.log('已经绑定手机号码')
@ -146,6 +145,10 @@ Page({
wx.navigateTo({ wx.navigateTo({
url: `/pages/user/${type}/index?userIcon=${this.data.userInfo.avatarUrl}&userName=${this.data.userInfo.nickName}&userPhone=${this.data.userInfo.phone || ''}&company=${this.data.userInfo.company || ''}&position=${this.data.userInfo.position || ''}`, url: `/pages/user/${type}/index?userIcon=${this.data.userInfo.avatarUrl}&userName=${this.data.userInfo.nickName}&userPhone=${this.data.userInfo.phone || ''}&company=${this.data.userInfo.company || ''}&position=${this.data.userInfo.position || ''}`,
}) })
} else {
wx.navigateTo({
url: `/pages/user/${type}/index`,
})
} }
} }
}) })
Loading…
Cancel
Save