Authored by 郭成尧

sms-verify-btn-modified

... ... @@ -114,10 +114,14 @@ class MobileNew extends Page {
let itime;
this.selector.getVerifyCodeBtn.removeClass('active');
this.selector.mobileInput.attr('disabled', 'disabled');
this.selector.clearMobile.addClass('hide');
itime = setInterval(() => {
if (count === 0) {
this.selector.getVerifyCodeBtn.text('重新获取').addClass('active');
this.selector.mobileInput.removeAttr('disabled');
this.selector.clearMobile.removeClass('hide');
clearInterval(itime);
} else {
this.selector.getVerifyCodeBtn.text('重新获取 (' + count-- + '秒)');
... ... @@ -125,6 +129,8 @@ class MobileNew extends Page {
if (during && parseInt(during, 10) !== 0) {
this.selector.getVerifyCodeBtn.removeClass('active');
this.selector.mobileInput.attr('disabled', 'disabled');
this.selector.clearMobile.addClass('hide');
}
}
}, 1000);
... ...
... ... @@ -75,10 +75,14 @@ class RegisterNew {
let itime;
this.view.getVerifyCodeBtn.removeClass('active');
this.view.mobileInput.attr('disabled', 'disabled');
this.view.clearMobile.addClass('hide');
itime = setInterval(() => {
if (count === 0) {
this.view.getVerifyCodeBtn.text('重新获取').addClass('active');
this.view.mobileInput.removeAttr('disabled');
this.view.clearMobile.removeClass('hide');
clearInterval(itime);
} else {
this.view.getVerifyCodeBtn.text('重新获取 (' + count-- + '秒)');
... ... @@ -86,6 +90,8 @@ class RegisterNew {
if (during && parseInt(during, 10) !== 0) {
this.view.getVerifyCodeBtn.removeClass('active');
this.view.mobileInput.attr('disabled', 'disabled');
this.view.clearMobile.addClass('hide');
}
}
}, 1000);
... ...
... ... @@ -73,10 +73,14 @@ class SmsLoginNew extends Page {
let itime;
this.selector.getVerifyCodeBtn.removeClass('active');
this.selector.mobileInput.attr('disabled', 'disabled');
this.selector.clearMobile.addClass('hide');
itime = setInterval(() => {
if (count === 0) {
this.selector.getVerifyCodeBtn.text('重新获取').addClass('active');
this.selector.mobileInput.removeAttr('disabled');
this.selector.clearMobile.removeClass('hide');
clearInterval(itime);
} else {
this.selector.getVerifyCodeBtn.text('重新获取 (' + count-- + '秒)');
... ... @@ -84,6 +88,8 @@ class SmsLoginNew extends Page {
if (during && parseInt(during, 10) !== 0) {
this.selector.getVerifyCodeBtn.removeClass('active');
this.selector.mobileInput.attr('disabled', 'disabled');
this.selector.clearMobile.addClass('hide');
}
}
}, 1000);
... ...