This commit is contained in:
杜恒
2021-04-28 10:41:11 +08:00
parent 5ae6a58e3a
commit 23fc07747a
9 changed files with 165 additions and 11 deletions

View File

@@ -560,4 +560,18 @@ document.addEventListener('DOMContentLoaded', () => {
$('.joe_motto').html(motto);
}
}
/* 登录 */
{
$(".joe_header__below-sign button[type='button']").on('click', function (e) {
if ($(".joe_header__below-sign input[name='name']").val().trim() === '') {
return Qmsg.warning('请输入用户名!');
}
if ($(".joe_header__below-sign input[name='password']").val().trim() === '') {
return Qmsg.warning('请输入密码!');
}
$(this).html('登录中...').attr('disabled', true);
$('.joe_header__below-sign form').submit();
});
}
});

File diff suppressed because one or more lines are too long