Authored by 郭成尧

bug-fixed

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