From e193d75257a21568a15f99b27a2a48bd7fd815f9 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期三, 22 三月 2023 17:59:06 +0800
Subject: [PATCH] 1.磅房详情(完成) 2.入场申请报错(完成) 3.签到(完成) 4.日志(完成) 5.发运计划详情(完成)

---
 pages/login/userPassword.vue |   32 +++++++++++++++++---------------
 1 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/pages/login/userPassword.vue b/pages/login/userPassword.vue
index 2fa9899..f21222d 100644
--- a/pages/login/userPassword.vue
+++ b/pages/login/userPassword.vue
@@ -43,8 +43,8 @@
 	},
 	data() {
 		return {
-			username: 'appuser',// 瀹㈡埛
-			// username: '18805080506',// 鐜嬫锛堝徃鏈猴級
+			// username: '12222222222', // 瀹㈡埛
+			username: '13333333332',// 鍙告満
 			password: '123456',
 			remember: true,
 			baseUrl: ''
@@ -84,20 +84,22 @@
 							setRefreshToken(res.refresh_token);
 							setUsernameKey(res.username);
 							//鏌ヨ鐢ㄦ埛璇︾粏淇℃伅骞跺偍瀛�
-							this.$reqGet('getUserEntity').then(res => {
-								this.$u.toast('鎭枩鎮紝鐧诲綍鎴愬姛锛�');
-								this.setUserTabbar(res.data.type);
-								uni.setStorageSync('roleType', res.data.type);
-								setCustomerId(res.data.customerid);
-								uni.hideLoading();
-								//璺宠浆椤甸潰
-								this.$nextTick(() => {
-									redirectHome();
+							this.$reqGet('getUserEntity')
+								.then(res => {
+									this.$u.toast('鎭枩鎮紝鐧诲綍鎴愬姛锛�');
+									this.setUserTabbar(res.data.type);
+									uni.setStorageSync('roleType', res.data.type);
+									setCustomerId(res.data.customerid);
+									uni.hideLoading();
+									//璺宠浆椤甸潰
+									this.$nextTick(() => {
+										redirectHome();
+									});
+								})
+								.catch(err => {
+									this.$u.toast('鐧诲綍寮傚父锛�');
+									console.log(err);
 								});
-							}).catch(err=>{
-								this.$u.toast('鐧诲綍寮傚父锛�');
-								console.log(err);
-							});
 						} else {
 							uni.hideLoading();
 							this.$u.toast(res.msg);

--
Gitblit v1.9.1