diff --git a/common/js/request.js b/common/js/request.js index 07636e2..b838eaf 100644 --- a/common/js/request.js +++ b/common/js/request.js @@ -77,10 +77,8 @@ export default { let userInfo = await wx.getUserProfile({ desc: '用于小程序登录' }); - console.log("从微信获取基本用户信息:" + userInfo); // 获取微信登录凭证 const wxLoginRes = await wx.login(); - console.log(wxLoginRes) // 获取openid const wxAuthRes = await uni.request({ url: '/wx/auth', @@ -88,7 +86,6 @@ export default { code: wxLoginRes.code } }) - console.log(wxAuthRes) const openId = wxAuthRes[1].data.data.openid; // 第一次从服务端获取用户信息 let wxGetUserRes = await this.qryUserInfo(openId); @@ -113,7 +110,6 @@ export default { wxLoginCode: wxLoginRes.code } } - console.log("通过后台服务获取用户信息:" + userInfo); if (!userInfo || userInfo.customerId == null || userInfo.customerId == undefined) { uni.showToast({ icon: 'none', @@ -202,7 +198,7 @@ export default { } if (phoneRes && phoneRes.data) { let userInfo = this.getCurUserInfo(); - this.updateUserPhone({ + await this.updateUserPhone({ customerId: userInfo.customerId, account: phoneRes.data, phone: phoneRes.data diff --git a/components/custom-bar/module-bar.vue b/components/custom-bar/module-bar.vue index b1bbf4e..3c011e1 100644 --- a/components/custom-bar/module-bar.vue +++ b/components/custom-bar/module-bar.vue @@ -26,7 +26,8 @@