...
|
...
|
@@ -9,7 +9,7 @@ var $resendBtn, |
|
|
var page = {
|
|
|
disableAjax: false,
|
|
|
|
|
|
time: 60,
|
|
|
time: 30,
|
|
|
resendText: '重发验证码',
|
|
|
timerId: null,
|
|
|
init: function() {
|
...
|
...
|
@@ -61,7 +61,7 @@ var page = { |
|
|
}
|
|
|
|
|
|
$nextBtn.toggleClass('disable', bool);
|
|
|
$nextBtn.prop('disable', bool);
|
|
|
$nextBtn.prop('disabled', bool);
|
|
|
});
|
|
|
},
|
|
|
|
...
|
...
|
@@ -73,7 +73,8 @@ var page = { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
$resendBtn.prop('disable', true);
|
|
|
$resendBtn.prop('disabled', true);
|
|
|
$resendBtn.text('重新发送(' + second + ')');
|
|
|
this.timerId = setInterval(function() {
|
|
|
var txt = self.resendText;
|
|
|
|
...
|
...
|
@@ -82,7 +83,7 @@ var page = { |
|
|
if (second < 0) {
|
|
|
clearInterval(self.timerId);
|
|
|
self.timerId = null;
|
|
|
$resendBtn.prop('disable', false);
|
|
|
$resendBtn.prop('disabled', false);
|
|
|
} else {
|
|
|
txt = '重新发送(' + second + '秒)';
|
|
|
}
|
...
|
...
|
@@ -96,7 +97,7 @@ var page = { |
|
|
resendSMS: function() {
|
|
|
var self = this;
|
|
|
|
|
|
if ($resendBtn.prop('disable')) {
|
|
|
if ($resendBtn.prop('disabled')) {
|
|
|
return;
|
|
|
}
|
|
|
|
...
|
...
|
|