|
@@ -263,29 +263,31 @@ class RegisterNew { |
|
@@ -263,29 +263,31 @@ class RegisterNew { |
263
|
};
|
263
|
};
|
264
|
|
264
|
|
265
|
if (api.phoneRegx[areaCode].test(phoneNum) || areaCode !== '+86') {
|
265
|
if (api.phoneRegx[areaCode].test(phoneNum) || areaCode !== '+86') {
|
266
|
- validate.getResults().then(result => {
|
|
|
267
|
- $.extend(params, result);
|
266
|
+ // validate.getResults().then(result => {
|
|
|
267
|
+ // $.extend(params, result);
|
268
|
$.ajax({
|
268
|
$.ajax({
|
269
|
url: '/passport/reg/verifymobile',
|
269
|
url: '/passport/reg/verifymobile',
|
270
|
type: 'POST',
|
270
|
type: 'POST',
|
271
|
data: params,
|
271
|
data: params,
|
272
|
success: postResult => {
|
272
|
success: postResult => {
|
273
|
- validate.type === 2 && validate.refresh();
|
273
|
+ // validate.type === 2 && validate.refresh();
|
274
|
if (postResult.code === 200) {
|
274
|
if (postResult.code === 200) {
|
275
|
- this.view.tokenInput.val(postResult.data.token);
|
275
|
+ // this.view.tokenInput.val(postResult.data.token);
|
276
|
this.countDown();
|
276
|
this.countDown();
|
277
|
} else {
|
277
|
} else {
|
278
|
- (postResult.changeCaptcha && validate.type !== 2) && validate.refresh();
|
278
|
+ // (postResult.changeCaptcha && validate.type !== 2) && validate.refresh();
|
279
|
|
279
|
|
280
|
showErrTip(postResult.message);
|
280
|
showErrTip(postResult.message);
|
281
|
}
|
281
|
}
|
282
|
},
|
282
|
},
|
283
|
error: () => {
|
283
|
error: () => {
|
284
|
showErrTip('出错了,请重试');
|
284
|
showErrTip('出错了,请重试');
|
285
|
- validate.refresh();
|
285
|
+
|
|
|
286
|
+ // validate.refresh();
|
286
|
}
|
287
|
}
|
287
|
});
|
288
|
});
|
288
|
- });
|
289
|
+
|
|
|
290
|
+ // });
|
289
|
} else {
|
291
|
} else {
|
290
|
showErrTip('手机号输入有错误');
|
292
|
showErrTip('手机号输入有错误');
|
291
|
}
|
293
|
}
|