From c136669b4990a5276e594425179e3a41a8fcf5b3 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期五, 23 八月 2024 17:01:05 +0800
Subject: [PATCH] feat:请求退单增加限制

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

diff --git a/pages/login/userPassword.vue b/pages/login/userPassword.vue
index 224a26a..67dcd43 100644
--- a/pages/login/userPassword.vue
+++ b/pages/login/userPassword.vue
@@ -77,6 +77,7 @@
 						scope: 'server'
 					})
 					.then(res => {
+						this.submitLoading = false
 						setToken(res.access_token);
 						setRefreshToken(res.refresh_token);
 						if (this.btnText == 0) {
@@ -90,6 +91,8 @@
 								this.$reqGet('getUserEntity')
 									.then(res => {
                     this.$u.toast('鐧诲綍鎴愬姛');
+					this.submitLoading = false
+					this.getLoginInfo(); // 璁板綍鐧诲綍淇℃伅
                     this.setUserTabbar(res.data.type);
                     uni.setStorageSync('roleType', res.data.type);
                     uni.setStorageSync("userId", res.data.userId)
@@ -118,6 +121,7 @@
 								this.$u.toast(res.msg);
 							}
 						} else {
+							console.log('寰俊缁戝畾锛燂紵锛燂紵锛�')
 							uni.login({
 								success: res => {
 									if (res.code) {
@@ -125,6 +129,7 @@
 									}
 								}
 							});
+							this.submitLoading = false
 							if (uni.getStorageSync('bindcode')) {
 								this.$reqPost('wxBind', { state: 'MINI', code: uni.getStorageSync('bindcode') },
 									'params').then(res => {
@@ -137,6 +142,8 @@
 									} else {
 										this.$u.toast(res.msg ? res.msg : '缁戝畾澶辫触');
 									}
+								}).finally(() => {
+									this.submitLoading = false;
 								});
 							}
 						}
@@ -145,6 +152,12 @@
 						this.$u.toast(e);
 					});
 
+			},
+			//璁板綍鐧诲綍淇℃伅
+			getLoginInfo(){
+				this.$reqPost('setApplogonTime').then((res) => {
+				  	
+				})
 			}
 		}
 	};

--
Gitblit v1.9.1