sms-verify-btn-modified
Showing
3 changed files
with
18 additions
and
0 deletions
@@ -114,10 +114,14 @@ class MobileNew extends Page { | @@ -114,10 +114,14 @@ class MobileNew extends Page { | ||
114 | let itime; | 114 | let itime; |
115 | 115 | ||
116 | this.selector.getVerifyCodeBtn.removeClass('active'); | 116 | this.selector.getVerifyCodeBtn.removeClass('active'); |
117 | + this.selector.mobileInput.attr('disabled', 'disabled'); | ||
118 | + this.selector.clearMobile.addClass('hide'); | ||
117 | 119 | ||
118 | itime = setInterval(() => { | 120 | itime = setInterval(() => { |
119 | if (count === 0) { | 121 | if (count === 0) { |
120 | this.selector.getVerifyCodeBtn.text('重新获取').addClass('active'); | 122 | this.selector.getVerifyCodeBtn.text('重新获取').addClass('active'); |
123 | + this.selector.mobileInput.removeAttr('disabled'); | ||
124 | + this.selector.clearMobile.removeClass('hide'); | ||
121 | clearInterval(itime); | 125 | clearInterval(itime); |
122 | } else { | 126 | } else { |
123 | this.selector.getVerifyCodeBtn.text('重新获取 (' + count-- + '秒)'); | 127 | this.selector.getVerifyCodeBtn.text('重新获取 (' + count-- + '秒)'); |
@@ -125,6 +129,8 @@ class MobileNew extends Page { | @@ -125,6 +129,8 @@ class MobileNew extends Page { | ||
125 | 129 | ||
126 | if (during && parseInt(during, 10) !== 0) { | 130 | if (during && parseInt(during, 10) !== 0) { |
127 | this.selector.getVerifyCodeBtn.removeClass('active'); | 131 | this.selector.getVerifyCodeBtn.removeClass('active'); |
132 | + this.selector.mobileInput.attr('disabled', 'disabled'); | ||
133 | + this.selector.clearMobile.addClass('hide'); | ||
128 | } | 134 | } |
129 | } | 135 | } |
130 | }, 1000); | 136 | }, 1000); |
@@ -75,10 +75,14 @@ class RegisterNew { | @@ -75,10 +75,14 @@ class RegisterNew { | ||
75 | let itime; | 75 | let itime; |
76 | 76 | ||
77 | this.view.getVerifyCodeBtn.removeClass('active'); | 77 | this.view.getVerifyCodeBtn.removeClass('active'); |
78 | + this.view.mobileInput.attr('disabled', 'disabled'); | ||
79 | + this.view.clearMobile.addClass('hide'); | ||
78 | 80 | ||
79 | itime = setInterval(() => { | 81 | itime = setInterval(() => { |
80 | if (count === 0) { | 82 | if (count === 0) { |
81 | this.view.getVerifyCodeBtn.text('重新获取').addClass('active'); | 83 | this.view.getVerifyCodeBtn.text('重新获取').addClass('active'); |
84 | + this.view.mobileInput.removeAttr('disabled'); | ||
85 | + this.view.clearMobile.removeClass('hide'); | ||
82 | clearInterval(itime); | 86 | clearInterval(itime); |
83 | } else { | 87 | } else { |
84 | this.view.getVerifyCodeBtn.text('重新获取 (' + count-- + '秒)'); | 88 | this.view.getVerifyCodeBtn.text('重新获取 (' + count-- + '秒)'); |
@@ -86,6 +90,8 @@ class RegisterNew { | @@ -86,6 +90,8 @@ class RegisterNew { | ||
86 | 90 | ||
87 | if (during && parseInt(during, 10) !== 0) { | 91 | if (during && parseInt(during, 10) !== 0) { |
88 | this.view.getVerifyCodeBtn.removeClass('active'); | 92 | this.view.getVerifyCodeBtn.removeClass('active'); |
93 | + this.view.mobileInput.attr('disabled', 'disabled'); | ||
94 | + this.view.clearMobile.addClass('hide'); | ||
89 | } | 95 | } |
90 | } | 96 | } |
91 | }, 1000); | 97 | }, 1000); |
@@ -73,10 +73,14 @@ class SmsLoginNew extends Page { | @@ -73,10 +73,14 @@ class SmsLoginNew extends Page { | ||
73 | let itime; | 73 | let itime; |
74 | 74 | ||
75 | this.selector.getVerifyCodeBtn.removeClass('active'); | 75 | this.selector.getVerifyCodeBtn.removeClass('active'); |
76 | + this.selector.mobileInput.attr('disabled', 'disabled'); | ||
77 | + this.selector.clearMobile.addClass('hide'); | ||
76 | 78 | ||
77 | itime = setInterval(() => { | 79 | itime = setInterval(() => { |
78 | if (count === 0) { | 80 | if (count === 0) { |
79 | this.selector.getVerifyCodeBtn.text('重新获取').addClass('active'); | 81 | this.selector.getVerifyCodeBtn.text('重新获取').addClass('active'); |
82 | + this.selector.mobileInput.removeAttr('disabled'); | ||
83 | + this.selector.clearMobile.removeClass('hide'); | ||
80 | clearInterval(itime); | 84 | clearInterval(itime); |
81 | } else { | 85 | } else { |
82 | this.selector.getVerifyCodeBtn.text('重新获取 (' + count-- + '秒)'); | 86 | this.selector.getVerifyCodeBtn.text('重新获取 (' + count-- + '秒)'); |
@@ -84,6 +88,8 @@ class SmsLoginNew extends Page { | @@ -84,6 +88,8 @@ class SmsLoginNew extends Page { | ||
84 | 88 | ||
85 | if (during && parseInt(during, 10) !== 0) { | 89 | if (during && parseInt(during, 10) !== 0) { |
86 | this.selector.getVerifyCodeBtn.removeClass('active'); | 90 | this.selector.getVerifyCodeBtn.removeClass('active'); |
91 | + this.selector.mobileInput.attr('disabled', 'disabled'); | ||
92 | + this.selector.clearMobile.addClass('hide'); | ||
87 | } | 93 | } |
88 | } | 94 | } |
89 | }, 1000); | 95 | }, 1000); |
-
Please register or login to post a comment