...
|
...
|
@@ -263,29 +263,31 @@ class RegisterNew { |
|
|
};
|
|
|
|
|
|
if (api.phoneRegx[areaCode].test(phoneNum) || areaCode !== '+86') {
|
|
|
validate.getResults().then(result => {
|
|
|
$.extend(params, result);
|
|
|
// validate.getResults().then(result => {
|
|
|
// $.extend(params, result);
|
|
|
$.ajax({
|
|
|
url: '/passport/reg/verifymobile',
|
|
|
type: 'POST',
|
|
|
data: params,
|
|
|
success: postResult => {
|
|
|
validate.type === 2 && validate.refresh();
|
|
|
// validate.type === 2 && validate.refresh();
|
|
|
if (postResult.code === 200) {
|
|
|
this.view.tokenInput.val(postResult.data.token);
|
|
|
// this.view.tokenInput.val(postResult.data.token);
|
|
|
this.countDown();
|
|
|
} else {
|
|
|
(postResult.changeCaptcha && validate.type !== 2) && validate.refresh();
|
|
|
// (postResult.changeCaptcha && validate.type !== 2) && validate.refresh();
|
|
|
|
|
|
showErrTip(postResult.message);
|
|
|
}
|
|
|
},
|
|
|
error: () => {
|
|
|
showErrTip('出错了,请重试');
|
|
|
validate.refresh();
|
|
|
|
|
|
// validate.refresh();
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
// });
|
|
|
} else {
|
|
|
showErrTip('手机号输入有错误');
|
|
|
}
|
...
|
...
|
|