mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2025-07-22 21:03:47 +08:00
更新于 07-06 01:22
This commit is contained in:
@@ -1,30 +1,5 @@
|
||||
var qrcode, userCookie, timeId;
|
||||
|
||||
$.ajaxSetup({
|
||||
cache: false
|
||||
});
|
||||
|
||||
$("#login").click(function () {
|
||||
$user = $(".username").val();
|
||||
$password = $(".password").val();
|
||||
if (!$user || !$password) return;
|
||||
|
||||
$.post('./auth', {
|
||||
username: $user,
|
||||
password: $password
|
||||
}, function (data) {
|
||||
if (data.err == 0) {
|
||||
window.location.href = "./usrconfig";
|
||||
} else {
|
||||
Swal.fire({
|
||||
text: data.msg,
|
||||
icon: 'error'
|
||||
})
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
qrcode = new QRCode(document.getElementById('qrcode'), {
|
||||
text: 'sample',
|
||||
|
Reference in New Issue
Block a user