wangxin před 5 roky
rodič
revize
e5bf8157c8
1 změnil soubory, kde provedl 7 přidání a 8 odebrání
  1. 7 8
      src/view/captcha/captcha.vue

+ 7 - 8
src/view/captcha/captcha.vue

@@ -85,18 +85,18 @@
             this.phone = location.href.split('?')[1].split('&')[0].split('=')[1];
             this.number = this.phone.substring(0, 3) + ' ' + this.phone.substring(3, 7) + ' ' + this.phone.substring(7, 11);
             if (window.TencentCaptcha) {
-                this.getTencentCaptcha(this.getCaptcha);
+                this.getTencentCaptcha();
             } else {
                 const int = setInterval(() => {
                     if (window.TencentCaptcha) {
                         clearInterval(int);
-                        this.getTencentCaptcha(this.getCaptcha);
+                        this.getTencentCaptcha();
                     }
                 }, 50)
             }
         },
         methods: {
-            getTencentCaptcha(callback) {
+            getTencentCaptcha() {
                 const that = this;
                 this.TencentCaptcha = new window.TencentCaptcha(
                     getAppId(),
@@ -142,7 +142,7 @@
                         }
                     }
                 );
-                callback()
+                this.TencentCaptcha.show();
             },
             // next(index) {
             //     const input = document.querySelectorAll('input');
@@ -165,10 +165,9 @@
             //         }
             //     }
             // },
-            getCaptcha() {
-                this.can_jump = false;
-                this.TencentCaptcha.show();
-            },
+            // getCaptcha() {
+            //     this.TencentCaptcha.show();
+            // },
             // countDown() {
             //     if (this.time === 60) {
             //         this.time = --this.time;