Browse Source

弹窗关闭倒计时不清空bug修改

tanxue 3 years ago
parent
commit
f39f19e59b
1 changed files with 7 additions and 2 deletions
  1. 7 2
      pages/resources/index.vue

+ 7 - 2
pages/resources/index.vue

@@ -322,7 +322,8 @@
         }
       },
       delDlClose(){
-        this.telDl  =false
+        this.telDl  =false;
+        this.countdown = -1;
         this.$refs.ruleTelForm.resetFields();
         __nc.reset();
 
@@ -393,6 +394,10 @@
           this.btnTextDisabled = false;
           this.btnText = '免费获取验证码';
           this.countdown = 60;
+        }else if(this.countdown === -1){
+          this.btnTextDisabled = false;
+          this.btnText = '获取验证码';
+          this.countdown = 60;
         } else {
           this.btnTextDisabled = true;
           this.btnText = '重新发送(' + this.countdown + 's)';
@@ -405,7 +410,7 @@
       // 验证码
       checkVerification() {
         if (this.sliderData.appkey === undefined) {
-          this.$message.error('人机交互未通过');
+          this.$message.error('请先通过滑块校验');
           return;
         }
         this.$axios.$post(`/develop/exists`,{  phone: this.telChangeDate.tel}).then(res=>{