|
|
@ -114,7 +114,7 @@ export default { |
|
|
|
return { |
|
|
|
return { |
|
|
|
activeIndex:"1", |
|
|
|
activeIndex:"1", |
|
|
|
|
|
|
|
|
|
|
|
showVerify:false,// 账号-验证码展示 |
|
|
|
showVerify: true,// 账号-验证码展示 |
|
|
|
verificationIMG:'',// 账号验证码拼接链接 |
|
|
|
verificationIMG:'',// 账号验证码拼接链接 |
|
|
|
|
|
|
|
|
|
|
|
// 账号 |
|
|
|
// 账号 |
|
|
@ -134,7 +134,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 手机+邮箱 |
|
|
|
// 手机+邮箱 |
|
|
|
showPhoneVerify:false,// 邮箱-验证码展示 |
|
|
|
showPhoneVerify:true,// 邮箱-验证码展示 |
|
|
|
PhoneVerificationIMG:'',// 电话或邮箱验证码拼接链接 |
|
|
|
PhoneVerificationIMG:'',// 电话或邮箱验证码拼接链接 |
|
|
|
phoneOrEmail: { |
|
|
|
phoneOrEmail: { |
|
|
|
account: '', |
|
|
|
account: '', |
|
|
@ -142,7 +142,8 @@ export default { |
|
|
|
code:'', |
|
|
|
code:'', |
|
|
|
platform:3, |
|
|
|
platform:3, |
|
|
|
random:'', |
|
|
|
random:'', |
|
|
|
distinguish:2 |
|
|
|
distinguish:2, |
|
|
|
|
|
|
|
type: 2 |
|
|
|
}, |
|
|
|
}, |
|
|
|
phoneOrEmailrules:{ |
|
|
|
phoneOrEmailrules:{ |
|
|
|
account: [{ validator: regPhoneOrEmail, trigger: 'blur' }], |
|
|
|
account: [{ validator: regPhoneOrEmail, trigger: 'blur' }], |
|
|
@ -214,16 +215,16 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
blur(){ |
|
|
|
blur(){ |
|
|
|
if(!this.param.account){ |
|
|
|
// if(!this.param.account){ |
|
|
|
return this.verificationIMG = '' |
|
|
|
// return this.verificationIMG = '' |
|
|
|
} |
|
|
|
// } |
|
|
|
this.param.random = Math.floor(Math.random()*999999999) |
|
|
|
this.param.random = Math.floor(Math.random()*999999999) |
|
|
|
this.verificationIMG = this.api.verification+'?random='+`${this.param.random}` |
|
|
|
this.verificationIMG = this.api.verification+'?random='+`${this.param.random}` |
|
|
|
}, |
|
|
|
}, |
|
|
|
phoneBlur(){ |
|
|
|
phoneBlur(){ |
|
|
|
if(!this.phoneOrEmail.account){ |
|
|
|
// if(!this.phoneOrEmail.account){ |
|
|
|
return this.PhoneVerificationIMG = '' |
|
|
|
// return this.PhoneVerificationIMG = '' |
|
|
|
} |
|
|
|
// } |
|
|
|
this.phoneOrEmail.random = Math.floor(Math.random()*999999999) |
|
|
|
this.phoneOrEmail.random = Math.floor(Math.random()*999999999) |
|
|
|
this.PhoneVerificationIMG = this.api.verification+'?random='+`${this.phoneOrEmail.random}` |
|
|
|
this.PhoneVerificationIMG = this.api.verification+'?random='+`${this.phoneOrEmail.random}` |
|
|
|
}, |
|
|
|
}, |
|
|
|