|
@@ -403,7 +403,9 @@
|
|
|
|
|
|
|
|
|
sqfaDlClose(){
|
|
|
- this.sqfaDl =false
|
|
|
+ this.sqfaCountdown = -1;
|
|
|
+ this.sqfaSliderData.sqfaAppKey=undefined;
|
|
|
+ this.sqfaDl = false;
|
|
|
this.$refs.ruleTelForm.resetFields();
|
|
|
__nc.reset();
|
|
|
},
|
|
@@ -522,9 +524,13 @@
|
|
|
setTime() {
|
|
|
if (this.sqfaCountdown === 0) {
|
|
|
this.sqfaBtnDisabled = false;
|
|
|
- this.sqfaBtnText = '免费获取验证码';
|
|
|
+ this.sqfaBtnText = '获取验证码';
|
|
|
this.sqfaCountdown = 60;
|
|
|
- } else {
|
|
|
+ } else if(this.sqfaCountdown === -1){
|
|
|
+ this.sqfaBtnDisabled = false;
|
|
|
+ this.sqfaBtnText = '获取验证码';
|
|
|
+ this.sqfaCountdown = 60;
|
|
|
+ }else {
|
|
|
this.sqfaBtnDisabled = true;
|
|
|
this.sqfaBtnText = '重新发送(' + this.sqfaCountdown + 's)';
|
|
|
this.sqfaCountdown--;
|
|
@@ -559,10 +565,11 @@
|
|
|
this.$axios.$post('/sendCode',req).then(res=>{
|
|
|
if (res.code === 0 && res.data) {
|
|
|
this.setTime();
|
|
|
+ }else {
|
|
|
+ this.$message.error(res.msg||'手机号已存在');
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- console.log('手机号已存在')
|
|
|
this.$message.error('手机号已存在');
|
|
|
return false;
|
|
|
}
|