From 47bd92f8ba53011fa93fd4e80eda507b6c4f7a06 Mon Sep 17 00:00:00 2001 From: hxhxhx <2357034401@qq.com> Date: Wed, 30 Apr 2025 10:47:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=B1=E5=8C=85=E5=AF=BC=E5=85=A5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/forget.vue | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pages/login/forget.vue b/pages/login/forget.vue index 3c900c0..ae93da0 100644 --- a/pages/login/forget.vue +++ b/pages/login/forget.vue @@ -123,6 +123,7 @@ export default { data() { return { + userIsRegister:false, googleimg: "", googlesecret: "", googleDialog: false, @@ -169,6 +170,15 @@ this.codeIsLen = true; } }, + watch:{ + memail:{ + handler(val){ + this.userIsRegister = false; + }, + immediate:true, + deep:true + }, + }, methods: { copyadd() { uni.setClipboardData({ @@ -206,12 +216,20 @@ title: res.msg, icon: 'none' }); + this.userIsRegister = true; } } else { return } }, async googleemail() { + if(!this.code || this.emaiTip == "發送"){ + uni.showToast({ + title: '請先寄送並輸入郵箱驗證碼', + icon: 'none' + }); + return + } if (this.googleTip == "發送") { let num = 60; let googleTimer = setInterval(() => { @@ -222,6 +240,7 @@ clearInterval(googleTimer) } }, 1000) + if(this.userIsRegister) return let res = await _getgoogleauthurl({ email: this.activeTab == "register" ? this.email : this.memail });