From 908b9876dde97acbb09c53dc6debe3eecbb9d1b4 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期二, 28 四月 2026 22:10:32 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 app/pages/login/login.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/app/pages/login/login.vue b/app/pages/login/login.vue
index 753391a..f67430e 100644
--- a/app/pages/login/login.vue
+++ b/app/pages/login/login.vue
@@ -125,9 +125,7 @@
 					} else {
 						uni.showToast({ title: res.msg || '鍙戦�佸け璐�', icon: 'none' });
 					}
-				}).catch(err => {
-					uni.showToast({ title: '鍙戦�佸け璐�', icon: 'none' });
-				});
+				})
 			},
 			login() {
 				if (!this.isAgreed) {
@@ -147,8 +145,9 @@
 						uni.showToast({ title: '璇疯緭鍏ュ瘑鐮�', icon: 'none' });
 						return;
 					}
-					
+					uni.showLoading({ title: '鐧诲綍涓�...' })
 					this.$u.api.login(this.form).then(res => {
+						uni.hideLoading()
 						if (res.code === 200) {
 							this.$store.commit('setToken', res.data.token);
 							this.$u.api.verifyDetail().then(user => {
@@ -176,7 +175,9 @@
 						return;
 					}
 					
+					uni.showLoading({ title: '鐧诲綍涓�...' })
 					this.$u.api.register({ telephone: this.form.telephone, code: this.form.code }).then(res => {
+						uni.hideLoading()
 						if (res.code === 200) {
 							this.$store.commit('setToken', res.data.token);
 							this.$u.api.verifyDetail().then(user => {
@@ -189,6 +190,8 @@
 								}
 							})
 						}
+					}).catch(() => {
+						uni.hideLoading()
 					})
 				}
 			}

--
Gitblit v1.9.3