Authored by 陈轩

fix

@@ -9,7 +9,7 @@ var $resendBtn, @@ -9,7 +9,7 @@ var $resendBtn,
9 var page = { 9 var page = {
10 disableAjax: false, 10 disableAjax: false,
11 11
12 - time: 60, 12 + time: 30,
13 resendText: '重发验证码', 13 resendText: '重发验证码',
14 timerId: null, 14 timerId: null,
15 init: function() { 15 init: function() {
@@ -61,7 +61,7 @@ var page = { @@ -61,7 +61,7 @@ var page = {
61 } 61 }
62 62
63 $nextBtn.toggleClass('disable', bool); 63 $nextBtn.toggleClass('disable', bool);
64 - $nextBtn.prop('disable', bool); 64 + $nextBtn.prop('disabled', bool);
65 }); 65 });
66 }, 66 },
67 67
@@ -73,7 +73,8 @@ var page = { @@ -73,7 +73,8 @@ var page = {
73 return; 73 return;
74 } 74 }
75 75
76 - $resendBtn.prop('disable', true); 76 + $resendBtn.prop('disabled', true);
  77 + $resendBtn.text('重新发送(' + second + ')');
77 this.timerId = setInterval(function() { 78 this.timerId = setInterval(function() {
78 var txt = self.resendText; 79 var txt = self.resendText;
79 80
@@ -82,7 +83,7 @@ var page = { @@ -82,7 +83,7 @@ var page = {
82 if (second < 0) { 83 if (second < 0) {
83 clearInterval(self.timerId); 84 clearInterval(self.timerId);
84 self.timerId = null; 85 self.timerId = null;
85 - $resendBtn.prop('disable', false); 86 + $resendBtn.prop('disabled', false);
86 } else { 87 } else {
87 txt = '重新发送(' + second + '秒)'; 88 txt = '重新发送(' + second + '秒)';
88 } 89 }
@@ -96,7 +97,7 @@ var page = { @@ -96,7 +97,7 @@ var page = {
96 resendSMS: function() { 97 resendSMS: function() {
97 var self = this; 98 var self = this;
98 99
99 - if ($resendBtn.prop('disable')) { 100 + if ($resendBtn.prop('disabled')) {
100 return; 101 return;
101 } 102 }
102 103
@@ -39,7 +39,7 @@ var page = { @@ -39,7 +39,7 @@ var page = {
39 $resetBtn.on('click', function() { 39 $resetBtn.on('click', function() {
40 $phoneNum.val(''); 40 $phoneNum.val('');
41 $nextBtn 41 $nextBtn
42 - .prop('disable', true) 42 + .prop('disabled', true)
43 .toggleClass('disable', true); 43 .toggleClass('disable', true);
44 $resetBtn.hide(); 44 $resetBtn.hide();
45 }); 45 });
@@ -51,7 +51,7 @@ var page = { @@ -51,7 +51,7 @@ var page = {
51 51
52 $nextBtn 52 $nextBtn
53 .toggleClass('disable', !bool) 53 .toggleClass('disable', !bool)
54 - .prop('disable', !bool); 54 + .prop('disabled', !bool);
55 55
56 $resetBtn.toggle(bool); 56 $resetBtn.toggle(bool);
57 }, 57 },