diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/login/weixin.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/login/weixin.vue index c80fb58..d221f09 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/login/weixin.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/login/weixin.vue @@ -40,12 +40,12 @@ title: '正在登陆' }); var that = this; - let userInfo = await this.getUserProfile(); + // let userInfo = await this.getUserProfile(); let code = await this.getLoginCode(); that.$H.post('user/miniWxlogin', { code: code, - username: userInfo.nickName, - avatar: userInfo.avatarUrl, + // username: userInfo.nickName, + // avatar: userInfo.avatarUrl, }).then(res => { if (res.code === 0) { @@ -79,17 +79,17 @@ }); }); }, - getUserProfile() { - return new Promise((resolve, reject) => { - wx.getUserProfile({ - lang: 'zh_CN', - desc: '用于完善会员资料', - success: res => { - resolve(res.userInfo); - } - }); - }); - } + // getUserProfile() { + // return new Promise((resolve, reject) => { + // wx.getUserProfile({ + // lang: 'zh_CN', + // desc: '用于完善会员资料', + // success: res => { + // resolve(res.userInfo); + // } + // }); + // }); + // } } } diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/user.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/user.vue index 2d8be74..5b5fc59 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/user.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/user.vue @@ -111,7 +111,6 @@ } else { this.hasLogin = false; } - // this.getMsgNum(); }, onShareAppMessage(res) { let imgURL = 'http://pic.linfeng.tech/logo.png';