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}` },