From bf9fb3424b4fc4e1cc8e0f729c195b1a824142d4 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期四, 07 九月 2023 15:16:26 +0800
Subject: [PATCH] 客户我的界面逻辑优化

---
 pages/login/login.vue |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pages/login/login.vue b/pages/login/login.vue
index 62d395b..30df810 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -137,6 +137,7 @@
 				wx.request({
 					url: `https://api.weixin.qq.com/sns/jscode2session?appid=${this.appid}&secret=${this.secret}&js_code=${code}&grant_type=authorization_code`,
 					success(res) {
+						console.log(res, 'openid');
 						uni.setStorageSync('openid', res.data.openid);
 						// uni.showToast({
 						// 	title: '鎴愬姛鑾峰彇娴嬭瘯openid',
@@ -157,6 +158,7 @@
 							this.$reqGet('getUserEntity').then(res => {
 								this.setUserTabbar(res.data.type);
 								uni.setStorageSync('roleType', res.data.type);
+								uni.setStorageSync("userId", res.data.userId)
 								setCustomerId(res.data.customerid);
 								uni.hideLoading();
 								//璺宠浆椤甸潰
@@ -189,6 +191,7 @@
 				console.log('鎵撳紑浜�');
 			},
 			privacyConfirm() {
+				this.loginPopupShow = false
 				uni.navigateTo({
 					url: '/pages/register/register'
 				});

--
Gitblit v1.9.1