Authored by 陈轩

Merge branch 'feature/phone-login' into release/4.9.2

... ... @@ -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;
}
... ...
... ... @@ -39,7 +39,7 @@ var page = {
$resetBtn.on('click', function() {
$phoneNum.val('');
$nextBtn
.prop('disable', true)
.prop('disabled', true)
.toggleClass('disable', true);
$resetBtn.hide();
});
... ... @@ -51,7 +51,7 @@ var page = {
$nextBtn
.toggleClass('disable', !bool)
.prop('disable', !bool);
.prop('disabled', !bool);
$resetBtn.toggle(bool);
},
... ...