mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2025-07-19 08:33:46 +08:00
更新于 07-05 22:29
This commit is contained in:
@@ -31,6 +31,9 @@ $(document).ready(function () {
|
|||||||
correctLevel: QRCode.CorrectLevel.L,
|
correctLevel: QRCode.CorrectLevel.L,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#qrcontainer").addClass("hidden");
|
||||||
|
$("#refresh_qrcode").addClass("hidden");
|
||||||
|
|
||||||
function checkLogin(user) {
|
function checkLogin(user) {
|
||||||
var timeId = setInterval(() => {
|
var timeId = setInterval(() => {
|
||||||
let timeStamp = new Date().getTime();
|
let timeStamp = new Date().getTime();
|
||||||
@@ -39,19 +42,15 @@ $(document).ready(function () {
|
|||||||
$.post(`./cookie2?t=${timeStamp}`, { user, msg }, function (data) {
|
$.post(`./cookie2?t=${timeStamp}`, { user, msg }, function (data) {
|
||||||
if (data.err == 0) {
|
if (data.err == 0) {
|
||||||
clearInterval(timeId);
|
clearInterval(timeId);
|
||||||
$('#qrcontainer').addClass('hidden');
|
|
||||||
$('#refresh_qrcode').addClass('hidden');
|
|
||||||
userCookie = data.cookie;
|
userCookie = data.cookie;
|
||||||
msg = data.msg;
|
msg = data.msg;
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: msg || '🎈添加成功🎈',
|
title: msg || '🎈添加成功🎈',
|
||||||
/*
|
|
||||||
html:
|
html:
|
||||||
'<div class="cookieCon" style="font-size:12px;">' +
|
'<div class="cookieCon" style="font-size:12px;">' +
|
||||||
userCookie +
|
userCookie +
|
||||||
'</div>',
|
'</div>',
|
||||||
text: userCookie,
|
text: userCookie,
|
||||||
*/
|
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
confirmButtonText: '返回',
|
confirmButtonText: '返回',
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
@@ -69,8 +68,6 @@ $(document).ready(function () {
|
|||||||
let timeStamp = new Date().getTime();
|
let timeStamp = new Date().getTime();
|
||||||
$.get('./qrcode?t=' + timeStamp, function (data) {
|
$.get('./qrcode?t=' + timeStamp, function (data) {
|
||||||
if (data.err == 0) {
|
if (data.err == 0) {
|
||||||
$('#qrcontainer').removeClass('hidden');
|
|
||||||
$('#refresh_qrcode').addClass('hidden');
|
|
||||||
$('.landing').addClass('is-loading');
|
$('.landing').addClass('is-loading');
|
||||||
qrcode.clear();
|
qrcode.clear();
|
||||||
qrcode.makeCode(data.qrcode);
|
qrcode.makeCode(data.qrcode);
|
||||||
|
Reference in New Issue
Block a user