Merge pull request #140 from horizonlin/dev-3.2.0

调整登录失败后验证码不自动刷新
pull/173/head
Apex Liu 2019-01-04 10:21:02 +08:00 committed by GitHub
commit 8c5cb8e20b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -199,6 +199,7 @@ $app.login_account = function () {
function () {
$app.hide_op_box();
$app.show_op_box('error', '很抱歉,无法连接服务器!请稍后再试一次!');
$app.dom.captcha_image.attr('src', '/auth/captcha?h=36&rnd=' + Math.random());
$app.dom.btn_login.removeAttr('disabled');
}
);
@ -216,6 +217,7 @@ $app.do_account_login = function (username, password, captcha, oath, is_remember
} else {
$app.hide_op_box();
$app.show_op_box('error', '登录失败:' + tp_error_msg(ret.code, ret.message));
$app.dom.captcha_image.attr('src', '/auth/captcha?h=36&rnd=' + Math.random());
console.log(ret);
}
@ -224,6 +226,7 @@ $app.do_account_login = function (username, password, captcha, oath, is_remember
function () {
$app.hide_op_box();
$app.show_op_box('error', '很抱歉,无法连接服务器!请稍后再试!');
$app.dom.captcha_image.attr('src', '/auth/captcha?h=36&rnd=' + Math.random());
$app.dom.btn_login.removeAttr('disabled');
}
);