...
|
...
|
@@ -129,6 +129,7 @@ class Login { |
|
|
}, true);
|
|
|
}
|
|
|
validate && validate.type === 2 && validate.refresh();
|
|
|
data.code = 4189;
|
|
|
if (data.code === 200) {
|
|
|
res = data.data;
|
|
|
|
...
|
...
|
@@ -136,8 +137,8 @@ class Login { |
|
|
location.href = res.href;
|
|
|
this.view.loginBtn.text('登录成功');
|
|
|
} else if (data.code === 4189) {
|
|
|
localStorage.loginJumpUrl = $('#account').val();
|
|
|
localStorage.loginJump = 'true';
|
|
|
window.setCookie('loginJumpUrl', $('input[name=username]').val(), {path: '/passport'});
|
|
|
window.setCookie('loginJump', true);
|
|
|
location.href = data.url;
|
|
|
} else if (data.code === 510) {
|
|
|
location.href = data.url;
|
...
|
...
|
|