...
|
...
|
@@ -5,6 +5,7 @@ import checkPoint from './check-point'; |
|
|
import Page from 'yoho-page';
|
|
|
import Validate from 'plugin/validata';
|
|
|
const $captcha = $('#js-img-check');
|
|
|
const cookie = require('yoho-cookie');
|
|
|
const validate = new Validate($captcha, {
|
|
|
useREM: {
|
|
|
rootFontSize: 40,
|
...
|
...
|
@@ -42,16 +43,19 @@ class SmsLoginNew extends Page { |
|
|
this.selector.getVerifyCodeBtn.data('oneClick', false);
|
|
|
|
|
|
|
|
|
// 多次登录失败跳短信认证填充手机号
|
|
|
this.selector.mobileInput.val(localStorage.loginJumpUrl);
|
|
|
localStorage.removeItem('loginJumpUrl');
|
|
|
|
|
|
if (window.queryString && window.queryString.area && window.queryString.mobile) {
|
|
|
this.selector.countryCodeSelector.val('+' + window.queryString.area);
|
|
|
this.selector.mobileInput.val(window.queryString.mobile);
|
|
|
this.selector.mobileInput.trigger('input');
|
|
|
}
|
|
|
|
|
|
// 多次登录失败跳短信认证填充手机号
|
|
|
if (cookie.get('_loginJumpUrl')) {
|
|
|
this.selector.mobileInput.val(cookie.get('_loginJumpUrl'));
|
|
|
this.selector.mobileInput.trigger('input');
|
|
|
this.selector.getVerifyCodeBtn.click();
|
|
|
cookie.remove('_loginJumpUrl');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -193,6 +197,11 @@ class SmsLoginNew extends Page { |
|
|
let areaCode = this.selector.countryCodeSelector.val();
|
|
|
let phone = $.trim(this.selector.mobileInput.val());
|
|
|
|
|
|
if (cookie.get('_loginJumpUrl')) {
|
|
|
this.countDown();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
validate.getResults().then(result => {
|
|
|
let params = {
|
|
|
area: areaCode.replace('+', ''),
|
...
|
...
|
|