From 7653cd6e64d33e26d3aa8c37e61eda85a262cf1b Mon Sep 17 00:00:00 2001
From: linfeng <2445465217@qq.com>
Date: Mon, 31 Oct 2022 09:21:06 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4wx.getUserProfile=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../pages/login/weixin.vue                    | 28 +++++++++----------
 .../pages/user/user.vue                       |  1 -
 2 files changed, 14 insertions(+), 15 deletions(-)

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';