From 3bfe6c920fb315d70595f6991ff97a988bfdeacb Mon Sep 17 00:00:00 2001 From: fanp Date: Tue, 22 Oct 2019 16:17:29 +0800 Subject: [PATCH] update user tapItem --- pages/user/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/user/index.js b/pages/user/index.js index e765329..def9a3d 100644 --- a/pages/user/index.js +++ b/pages/user/index.js @@ -35,7 +35,6 @@ Page({ }, onShow: function () { - console.log('啦啦啦') this.getUserInfo() if (store.hasPhone()) { console.log('已经绑定手机号码') @@ -146,6 +145,10 @@ Page({ 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 || ''}`, }) + } else { + wx.navigateTo({ + url: `/pages/user/${type}/index`, + }) } } }) \ No newline at end of file