|
@@ -147,26 +147,34 @@ class EmailMobile extends Page { |
|
@@ -147,26 +147,34 @@ class EmailMobile extends Page { |
147
|
|
147
|
|
148
|
this.selector.verifyCodeBtn.data('oneClick', true);
|
148
|
this.selector.verifyCodeBtn.data('oneClick', true);
|
149
|
|
149
|
|
|
|
150
|
+ validate.getResults().then(result => {
|
150
|
let params = {
|
151
|
let params = {
|
151
|
area: area.replace('+', ''),
|
152
|
area: area.replace('+', ''),
|
152
|
mobile: pn
|
153
|
mobile: pn
|
153
|
};
|
154
|
};
|
154
|
|
155
|
|
|
|
156
|
+ $.extend(params, result);
|
|
|
157
|
+
|
155
|
this.ajax({
|
158
|
this.ajax({
|
156
|
url: '/passport/bind/forceSendMsg',
|
159
|
url: '/passport/bind/forceSendMsg',
|
157
|
type: 'POST',
|
160
|
type: 'POST',
|
158
|
data: params
|
161
|
data: params
|
159
|
}).then(codeResult => {
|
162
|
}).then(codeResult => {
|
160
|
this.selector.verifyCodeBtn.data('oneClick', false);
|
163
|
this.selector.verifyCodeBtn.data('oneClick', false);
|
|
|
164
|
+ validate.type === 2 && validate.refresh();
|
161
|
if (codeResult.code === 200) {
|
165
|
if (codeResult.code === 200) {
|
162
|
this.countDown();
|
166
|
this.countDown();
|
163
|
return;
|
167
|
return;
|
164
|
} else {
|
168
|
} else {
|
165
|
showErrTip(codeResult.message);
|
169
|
showErrTip(codeResult.message);
|
166
|
}
|
170
|
}
|
|
|
171
|
+
|
|
|
172
|
+ (codeResult.changeCaptcha && validate.type !== 2) && validate.refresh();
|
167
|
}).catch(() => {
|
173
|
}).catch(() => {
|
168
|
this.selector.verifyCodeBtn.data('oneClick', false);
|
174
|
this.selector.verifyCodeBtn.data('oneClick', false);
|
169
|
showErrTip('出错了,请重试');
|
175
|
showErrTip('出错了,请重试');
|
|
|
176
|
+ validate.refresh();
|
|
|
177
|
+ });
|
170
|
});
|
178
|
});
|
171
|
}
|
179
|
}
|
172
|
|
180
|
|
|
@@ -187,23 +195,18 @@ class EmailMobile extends Page { |
|
@@ -187,23 +195,18 @@ class EmailMobile extends Page { |
187
|
|
195
|
|
188
|
this.selector.loginBtn.data('oneClick', true);
|
196
|
this.selector.loginBtn.data('oneClick', true);
|
189
|
|
197
|
|
190
|
- validate.getResults().then(result => {
|
|
|
191
|
let params = {
|
198
|
let params = {
|
192
|
area: area.replace('+', ''),
|
199
|
area: area.replace('+', ''),
|
193
|
mobile: pn,
|
200
|
mobile: pn,
|
194
|
code: verifyCode,
|
201
|
code: verifyCode,
|
195
|
};
|
202
|
};
|
196
|
|
203
|
|
197
|
- $.extend(params, result);
|
|
|
198
|
-
|
|
|
199
|
this.ajax({
|
204
|
this.ajax({
|
200
|
url: '/passport/bind/forceMobileCheck',
|
205
|
url: '/passport/bind/forceMobileCheck',
|
201
|
type: 'POST',
|
206
|
type: 'POST',
|
202
|
data: params
|
207
|
data: params
|
203
|
}).then(codeResult => {
|
208
|
}).then(codeResult => {
|
204
|
-
|
|
|
205
|
this.selector.loginBtn.data('oneClick', false);
|
209
|
this.selector.loginBtn.data('oneClick', false);
|
206
|
- validate.type === 2 && validate.refresh();
|
|
|
207
|
|
210
|
|
208
|
if (codeResult.code === 200) {
|
211
|
if (codeResult.code === 200) {
|
209
|
this.continueBind(
|
212
|
this.continueBind(
|
|
@@ -213,13 +216,9 @@ class EmailMobile extends Page { |
|
@@ -213,13 +216,9 @@ class EmailMobile extends Page { |
213
|
} else {
|
216
|
} else {
|
214
|
showErrTip(codeResult.message);
|
217
|
showErrTip(codeResult.message);
|
215
|
}
|
218
|
}
|
216
|
-
|
|
|
217
|
- (codeResult.changeCaptcha && validate.type !== 2) && validate.refresh();
|
|
|
218
|
}).catch(() => {
|
219
|
}).catch(() => {
|
219
|
this.selector.loginBtn.data('oneClick', false);
|
220
|
this.selector.loginBtn.data('oneClick', false);
|
220
|
showErrTip('出错了,请重试');
|
221
|
showErrTip('出错了,请重试');
|
221
|
- validate.refresh();
|
|
|
222
|
- });
|
|
|
223
|
});
|
222
|
});
|
224
|
}
|
223
|
}
|
225
|
|
224
|
|
|
@@ -238,7 +237,7 @@ class EmailMobile extends Page { |
|
@@ -238,7 +237,7 @@ class EmailMobile extends Page { |
238
|
}
|
237
|
}
|
239
|
|
238
|
|
240
|
dialog.showDialog({
|
239
|
dialog.showDialog({
|
241
|
- dialogText: bindDialogHbs({isBind: true}),
|
240
|
+ dialogText: bindDialogHbs(bindParams),
|
242
|
fast: true,
|
241
|
fast: true,
|
243
|
hasFooter: {
|
242
|
hasFooter: {
|
244
|
leftBtnText: '去登录',
|
243
|
leftBtnText: '去登录',
|