shish 1 kuukausi sitten
vanhempi
commit
d84a8a7caf
1 muutettua tiedostoa jossa 2 lisäystä ja 21 poistoa
  1. 2 21
      ghsApp/src/admin/home/login.vue

+ 2 - 21
ghsApp/src/admin/home/login.vue

@@ -321,7 +321,6 @@ export default {
 		// 获取短信验证码
 		getSmsCode() {
 			let mobile = this.mobile
-			console.log('getSmsCode clicked, mobile:', mobile)
 			if (this.$util.isEmpty(mobile)) {
 				this.$msg('请输入手机号')
 				return false
@@ -335,28 +334,18 @@ export default {
 		},
 		sendSms() {
 			let mobile = this.mobile
-			console.log('sendSms called, mobile:', mobile)
 			uni.showLoading({ mask: true })
 			sendLoginSms({ 
 				mobile: mobile
 			}).then(res => {
 				uni.hideLoading()
-				console.log('sendLoginSms success:', res)
 				if (res.code == 1) {
 					this.$msg('验证码已发送')
 					uni.setStorageSync('last_sms_sent_time_login', Date.now())
 					this.startCountdown(60)
-				} else {
-					this.$msg(res.msg || '发送失败')
 				}
-			}).catch(err => {
+			}).catch(() => {
 				uni.hideLoading()
-				console.error('sendLoginSms failed:', err)
-				uni.showModal({
-					title: '发送失败',
-					content: JSON.stringify(err) || '网络请求失败,请检查网络或稍后再试',
-					showCancel: false
-				})
 			})
 		},
 		// 短信验证码登录提交
@@ -402,17 +391,9 @@ export default {
 						// #ifdef APP-PLUS
 						that.$util.afterAppLoginSuccess({ auto: 0 })
 						// #endif
-					} else {
-						this.$msg(subRes.msg || '登录失败')
 					}
-				}).catch(err => {
+				}).catch(() => {
 					uni.hideLoading()
-					console.error('smsLogin failed:', err)
-					uni.showModal({
-						title: '登录失败',
-						content: JSON.stringify(err) || '网络请求失败,请检查网络或稍后再试',
-						showCancel: false
-					})
 				})
 			})
 		},