|
|
@@ -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;
|