From 5be69a41438a8acf97f247fc07b0dc2e3203809a Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 27 Oct 2021 15:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=9B=B4=E6=8E=A5=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=AA=8C=E8=AF=81=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Login.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/Login.vue b/src/views/Login.vue index bc75ac1..315e91f 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -114,7 +114,7 @@ export default { return { activeIndex:"1", - showVerify:false,// 账号-验证码展示 + showVerify: true,// 账号-验证码展示 verificationIMG:'',// 账号验证码拼接链接 // 账号 @@ -134,7 +134,7 @@ export default { }, // 手机+邮箱 - showPhoneVerify:false,// 邮箱-验证码展示 + showPhoneVerify:true,// 邮箱-验证码展示 PhoneVerificationIMG:'',// 电话或邮箱验证码拼接链接 phoneOrEmail: { account: '', @@ -142,7 +142,8 @@ export default { code:'', platform:3, random:'', - distinguish:2 + distinguish:2, + type: 2 }, phoneOrEmailrules:{ account: [{ validator: regPhoneOrEmail, trigger: 'blur' }], @@ -214,16 +215,16 @@ export default { }, blur(){ - if(!this.param.account){ - return this.verificationIMG = '' - } + // if(!this.param.account){ + // return this.verificationIMG = '' + // } this.param.random = Math.floor(Math.random()*999999999) this.verificationIMG = this.api.verification+'?random='+`${this.param.random}` }, phoneBlur(){ - if(!this.phoneOrEmail.account){ - return this.PhoneVerificationIMG = '' - } + // if(!this.phoneOrEmail.account){ + // return this.PhoneVerificationIMG = '' + // } this.phoneOrEmail.random = Math.floor(Math.random()*999999999) this.PhoneVerificationIMG = this.api.verification+'?random='+`${this.phoneOrEmail.random}` },