From bf5651cc5fd25fe282d674b2996e3f3aaf98c62f Mon Sep 17 00:00:00 2001 From: 346149741 <346149741@qq.com> Date: 星期六, 22 六月 2024 20:38:08 +0800 Subject: [PATCH] Merge branch 'master' of http://218.28.192.34:9999/r/sqys/sqys_xcx --- pages/companyLogin/companyLogin.vue | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/pages/companyLogin/companyLogin.vue b/pages/companyLogin/companyLogin.vue index 984f5aa..9bb819d 100644 --- a/pages/companyLogin/companyLogin.vue +++ b/pages/companyLogin/companyLogin.vue @@ -107,10 +107,14 @@ title: '姝e湪鑾峰彇楠岃瘉鐮�' }) getCode({phone: this.form.phone }).then(val => { - this.startCountdown() - uni.hideLoading(); - this.tips = `${this.countdownTime}s鍚庨噸鏂拌幏鍙朻 - uni.$u.toast('楠岃瘉鐮佸凡鍙戦��'); + if(val.data.code == 200) { + this.startCountdown() + uni.hideLoading(); + this.tips = `${this.countdownTime}s鍚庨噸鏂拌幏鍙朻 + uni.$u.toast('楠岃瘉鐮佸凡鍙戦��'); + } + }).catch(err => { + this.isSendCode = false }) } else { uni.$u.toast('鍊掕鏃剁粨鏉熷悗鍐嶅彂閫�'); @@ -134,6 +138,20 @@ }, 1000) }, loging() { + if(!this.form.phone){ + uni.showToast({ + title: '璇疯緭鍏ユ墜鏈哄彿', + icon: 'none' + }) + return + } + if(!this.form.code){ + uni.showToast({ + title: '璇疯緭鍏ラ獙璇佺爜', + icon: 'none' + }) + return + } codeLogin(this.form).then(val => { if(val.data.token) { this.loginToken = val.data.token -- Gitblit v1.9.1