...
|
...
|
@@ -219,30 +219,31 @@ class SmsLoginNew extends Page { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
validate.getResults().then(result => {
|
|
|
// validate.getResults().then(result => {
|
|
|
let params = {
|
|
|
area: areaCode.replace('+', ''),
|
|
|
mobile: phone
|
|
|
};
|
|
|
|
|
|
$.extend(params, result);
|
|
|
// $.extend(params, result);
|
|
|
this.ajax({
|
|
|
method: 'POST',
|
|
|
url: '/passport/sms_login/step1_check',
|
|
|
data: params
|
|
|
}).then(data => {
|
|
|
validate.type === 2 && validate.refresh();
|
|
|
// validate.type === 2 && validate.refresh();
|
|
|
if (data.code === 200) {
|
|
|
checkPoint('YB_MOBILE_NEXT_C'); // 埋点
|
|
|
this.countDown();
|
|
|
} else {
|
|
|
(data.changeCaptcha && validate.type !== 2) && validate.refresh();
|
|
|
// (data.changeCaptcha && validate.type !== 2) && validate.refresh();
|
|
|
tip.show(data.message);
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
validate.refresh();
|
|
|
// validate.refresh();
|
|
|
});
|
|
|
});
|
|
|
|
|
|
// });
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|