Explorar el Código

个人-获取验证码优化

panyong hace 4 años
padre
commit
6cfaa8007f

+ 1 - 0
htmldev/loan/src/views/loan/apply/index.vue

@@ -235,6 +235,7 @@
         this.postData.code = code.length > 4 ? code.slice(0, 4) : code
       },
       funCutDown () {
+        clearInterval(this.timer)
         this.timer = setInterval(() => {
           if (this.numCount === 0) {
             clearInterval(this.timer)

+ 1 - 0
htmldev/loan/src/views/loan/register/index.vue

@@ -285,6 +285,7 @@
         this.postData.code = code.length > 4 ? code.slice(0, 4) : code
       },
       funCutDown () {
+        clearInterval(this.timer)
         this.timer = setInterval(() => {
           if (this.numCount === 0) {
             clearInterval(this.timer)

+ 1 - 0
htmldev/loan/src/views/partner/join/index.vue

@@ -202,6 +202,7 @@
         this.postData.inviteCode = inviteCode.length > 4 ? inviteCode.slice(0, 4) : inviteCode
       },
       funCutDown () {
+        clearInterval(this.timer)
         this.timer = setInterval(() => {
           if (this.numCount === 0) {
             clearInterval(this.timer)

+ 1 - 0
htmldev/loan/src/views/partner/login/index.vue

@@ -66,6 +66,7 @@
         this.postData.code = code.length > 4 ? code.slice(0, 4) : code
       },
       funCutDown () {
+        clearInterval(this.timer)
         this.timer = setInterval(() => {
           if (this.numCount === 0) {
             clearInterval(this.timer)