...
|
...
|
@@ -6,7 +6,6 @@ import Validate from 'plugin/validata'; |
|
|
const showErrTip = tip.show;
|
|
|
const trim = $.trim;
|
|
|
const $captcha = $('#js-img-check');
|
|
|
const useVerify = $captcha.data('userverify'); // 170406 是否使用验证
|
|
|
const validate = new Validate($captcha, {
|
|
|
useREM: {
|
|
|
rootFontSize: 40,
|
...
|
...
|
@@ -88,15 +87,11 @@ class InternationalNew extends Page { |
|
|
password: pwd
|
|
|
};
|
|
|
|
|
|
if (useVerify) {
|
|
|
validate.getResults().then((result) => {
|
|
|
this.selector.internationalLoginBtn.text('正在登录...').addClass('disable');
|
|
|
$.extend(params, result);
|
|
|
this.postInternationalLogin(params);
|
|
|
});
|
|
|
} else {
|
|
|
validate.getResults().then((result) => {
|
|
|
this.selector.internationalLoginBtn.text('正在登录...').addClass('disable');
|
|
|
$.extend(params, result);
|
|
|
this.postInternationalLogin(params);
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
showErrTip('账号或密码有错误,请重新输入');
|
|
|
this.selector.internationalLoginBtn.text('登录').addClass('disable');
|
...
|
...
|
|