Parcourir la source

再次发送验证码倒计时修改

zhangxc il y a 6 ans
Parent
commit
082b1d009b

+ 2 - 2
src/components/forgetPassword/FindPassword.vue

@@ -211,7 +211,7 @@
               type: 'warning'
             });*/
             // this.imgCodeErr = true;
-            this.phoneErrText = "手机格式有误";
+            this.phoneErrText = "手机格式有误";
             this.phone = "";
           }else{//验证手机号是否注册
             // this.imgCodeErr = false;
@@ -261,7 +261,7 @@
                 let that = this;
                 this.timer = window.setInterval(() => {
                   if ((that.time--) <= 0) {
-                    that.time = 60;
+                    that.time = 180;
                     that.timerFlag = false;
                     window.clearInterval(that.timer);
                   }

+ 3 - 3
src/components/register/Register.vue

@@ -20,7 +20,7 @@
                         <!-- <p>手机号</p> -->
 						<div class="phoneBox">
 							<input type="tel" :class="[{ 'error': phoneErrText}]" name="" v-model="phone" maxlength="11" @input="handleTelInput"
-                               @blur="checkPhone" placeholder="请输入用户名或手机号">
+                               @blur="checkPhone" placeholder="请输入手机号">
 							<span class="tips" v-show="phoneErrText">{{phoneErrText}}</span>
 						</div>
                         <div class="phoneBox">
@@ -230,7 +230,7 @@
             //   message: '手机格式不正确',
             //   type: 'warning'
 			// });
-			this.phoneErrText = '手机格式有误'
+			this.phoneErrText = '手机格式有误'
           
             this.phone = "";
             this.phoneRg = 1;
@@ -291,7 +291,7 @@
               let that = this;
               this.timer = window.setInterval(() => {
                 if ((that.time--) <= 0) {
-                  that.time = 60;
+                  that.time = 180;
                   that.timerFlag = false;
                   window.clearInterval(that.timer);
                 }