...
|
...
|
@@ -147,26 +147,34 @@ class EmailMobile extends Page { |
|
|
|
|
|
this.selector.verifyCodeBtn.data('oneClick', true);
|
|
|
|
|
|
validate.getResults().then(result => {
|
|
|
let params = {
|
|
|
area: area.replace('+', ''),
|
|
|
mobile: pn
|
|
|
};
|
|
|
|
|
|
$.extend(params, result);
|
|
|
|
|
|
this.ajax({
|
|
|
url: '/passport/bind/forceSendMsg',
|
|
|
type: 'POST',
|
|
|
data: params
|
|
|
}).then(codeResult => {
|
|
|
this.selector.verifyCodeBtn.data('oneClick', false);
|
|
|
validate.type === 2 && validate.refresh();
|
|
|
if (codeResult.code === 200) {
|
|
|
this.countDown();
|
|
|
return;
|
|
|
} else {
|
|
|
showErrTip(codeResult.message);
|
|
|
}
|
|
|
|
|
|
(codeResult.changeCaptcha && validate.type !== 2) && validate.refresh();
|
|
|
}).catch(() => {
|
|
|
this.selector.verifyCodeBtn.data('oneClick', false);
|
|
|
showErrTip('出错了,请重试');
|
|
|
validate.refresh();
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -187,23 +195,18 @@ class EmailMobile extends Page { |
|
|
|
|
|
this.selector.loginBtn.data('oneClick', true);
|
|
|
|
|
|
validate.getResults().then(result => {
|
|
|
let params = {
|
|
|
area: area.replace('+', ''),
|
|
|
mobile: pn,
|
|
|
code: verifyCode,
|
|
|
};
|
|
|
|
|
|
$.extend(params, result);
|
|
|
|
|
|
this.ajax({
|
|
|
url: '/passport/bind/forceMobileCheck',
|
|
|
type: 'POST',
|
|
|
data: params
|
|
|
}).then(codeResult => {
|
|
|
|
|
|
this.selector.loginBtn.data('oneClick', false);
|
|
|
validate.type === 2 && validate.refresh();
|
|
|
|
|
|
if (codeResult.code === 200) {
|
|
|
this.continueBind(
|
...
|
...
|
@@ -213,13 +216,9 @@ class EmailMobile extends Page { |
|
|
} else {
|
|
|
showErrTip(codeResult.message);
|
|
|
}
|
|
|
|
|
|
(codeResult.changeCaptcha && validate.type !== 2) && validate.refresh();
|
|
|
}).catch(() => {
|
|
|
this.selector.loginBtn.data('oneClick', false);
|
|
|
showErrTip('出错了,请重试');
|
|
|
validate.refresh();
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -238,7 +237,7 @@ class EmailMobile extends Page { |
|
|
}
|
|
|
|
|
|
dialog.showDialog({
|
|
|
dialogText: bindDialogHbs({isBind: true}),
|
|
|
dialogText: bindDialogHbs(bindParams),
|
|
|
fast: true,
|
|
|
hasFooter: {
|
|
|
leftBtnText: '去登录',
|
...
|
...
|
|