Update kuduan.html
This commit is contained in:
parent
0505ed7d98
commit
6a69933d1d
@ -103,37 +103,38 @@ swal("请务必看一遍", "✌️京东APP扫码后 页面跳转即为成功✌
|
||||
}
|
||||
showQrcode()
|
||||
|
||||
function login() {
|
||||
var xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
|
||||
var results = xmlhttp.responseText
|
||||
console.log(results)
|
||||
switch (results) {
|
||||
case "授权登录未确认":
|
||||
break;
|
||||
case "登录":
|
||||
hd.style.visibility = "hidden";
|
||||
qrcode.src = success
|
||||
clearInterval(timer)
|
||||
setTimeout(() => {
|
||||
window.location.href = "/admin"
|
||||
}, 1000);
|
||||
break;
|
||||
case "成功":
|
||||
hd.style.visibility = "hidden";
|
||||
qrcode.src = success
|
||||
clearInterval(timer)
|
||||
break;
|
||||
default:
|
||||
showQrcode()
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET", "/api/login/query", true);
|
||||
xmlhttp.send();
|
||||
}
|
||||
function login() {
|
||||
var xmlhttp = window.XMLHttpRequest
|
||||
? new XMLHttpRequest()
|
||||
: new ActiveXObject("Microsoft.XMLHTTP");
|
||||
xmlhttp.onreadystatechange = function () {
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
|
||||
var results = xmlhttp.responseText;
|
||||
console.log(results);
|
||||
switch (results) {
|
||||
case "授权登录未确认":
|
||||
break;
|
||||
case "登录":
|
||||
qrcode.src = success;
|
||||
clearInterval(timer);
|
||||
setTimeout(() => {
|
||||
window.location.href = "/admin"
|
||||
}, 1000);
|
||||
break;
|
||||
case "成功":
|
||||
qrcode.src = success;
|
||||
clearInterval(timer);
|
||||
setTimeout(() => {}, 1000);
|
||||
break;
|
||||
default:
|
||||
showQrcode();
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
xmlhttp.open("GET", "/api/login/query", true);
|
||||
xmlhttp.send();
|
||||
}
|
||||
|
||||
function polling() {
|
||||
timer = setInterval(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user