Merge branch 'main' of https://github.com/cdle/xdd into main
This commit is contained in:
commit
0afbfc6034
@ -5,34 +5,32 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>何必烦忧</title>
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/a251231/mass@main/panel/js/jquery.base64.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/a251231/mass@main/panel/js/skel.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/sweetalert2@10.15.5/dist/sweetalert2.all.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/davidshimjs-qrcodejs@0.0.2/qrcode.min.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="https://cdn.jsdelivr.net/npm/sweetalert2@10.15.5/dist/sweetalert2.all.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/a251231/mass@main/panel/css/other.css?66886666">
|
||||
<link rel="icon" type="image/x-icon" href="https://github.com/favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/a251231/mass@main/panel/css/sweetalert.css">
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/a251231/mass@main/panel/js/sweetalert-dev.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/a251231/mass@main/panel/js/sweetalert-dev.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="landing">
|
||||
<script type="text/javascript" color="255,255,255" opacity='0.7' zIndex="auto" count="200" src="https://cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.min.js"></script>
|
||||
<script type="text/javascript" color="255,255,255" opacity='0.7' zIndex="auto" count="200" src="https://cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.min.js"></script>
|
||||
<div id="page-wrapper">
|
||||
|
||||
|
||||
<section id="banner">
|
||||
<div class="inner">
|
||||
<h2>人生苦短,何必烦忧</h2>
|
||||
<p>点击下方按钮开始使用</p>
|
||||
<ul class="actions">
|
||||
<div zIndex="99999">
|
||||
<img id="qrcode" height="170em" src="./ok.svg" />
|
||||
</div>
|
||||
<li><a id="GetQrCode" class="button special" title="手机扫描二维码登录">扫描二维码添加</a>
|
||||
<li><a id="jumpapp" href="#" zIndex="1" class="button special" title="APP登录">跳转京东APP添加</a>
|
||||
<!--<li><a id="login" class="button special" title="APP登录" href="./login.html">控制中心</a>-->
|
||||
<!--<li><a id="BeanChange" class="button special" title="走势图" href="./BeanChange.html">走势图</a>-->
|
||||
</li>
|
||||
<div>
|
||||
<img id="qrcode" height="170em" src="./ok.svg" />
|
||||
</div>
|
||||
<li><a id="GetQrCode" class="button" onclick="GetQrCode()" title="注意事项">注意事项</a>
|
||||
<li><a id="jumpapp" href="#" class="button" title="APP登录">跳转京东APP添加</a>
|
||||
<!--<li><a id="login" class="button special" title="APP登录" href="./login.html">控制中心</a>-->
|
||||
<!--<li><a id="BeanChange" class="button special" title="走势图" href="./BeanChange.html">走势图</a>-->
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<!--<a href="http://www.highdimen.com" target="_blank" style="color:yellow;font-weight:bold">[备用扫码]</a>-->
|
||||
@ -43,18 +41,17 @@
|
||||
</p>
|
||||
|
||||
<div class="more">
|
||||
<a class="qq_group" id="qq_group" target="_blank" href="https://t.me/jstool">
|
||||
<!--<img border="0" src="static/image/qq.png" alt="联系客服" title="联系客服">-->
|
||||
<!-- <a class="qq_group" id="qq_group" target="_blank" href="">
|
||||
<img border="0" src="static/image/qq.png" alt="联系客服" title="联系客服">
|
||||
</a>
|
||||
<br />
|
||||
<a id="UserNum" style="font-size:12px;"></a>
|
||||
<br /> <a id="UserNum" style="font-size:12px;"></a>-->
|
||||
<br />欢迎🧡使用
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div id="qrcontainer" class="hidden">
|
||||
<!--<div id="qrcontainer" class="hidden">
|
||||
<div class="qframe" id="qframe">
|
||||
<div id="refresh_qrcode" class="hidden">
|
||||
<div>
|
||||
@ -74,21 +71,20 @@
|
||||
<div class="qframe-close" title="关闭">✖</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<script>
|
||||
swal("请务必看一遍", "✌️京东APP扫码后 页面跳转即为成功✌️\n❤️打开APP完成新手任务❤️\n❣️京东❣️➨我的➨更多工具➨(农场、萌宠、工厂、宠汪汪、金榜创造营、领现金、健康社区、种豆得豆)\n❣️京喜❣️➨我的➨(农场、牧场、工厂、财富岛)\n❣️金融❣️➨我的➨(种摇钱树、天天提鹅、养猪猪)\n☂️京东账号绑定微信可以更多¥¥☂️\n☠️请关闭免密支付☠️", "success")
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
</div>-->
|
||||
</body>
|
||||
<script>
|
||||
var timer;
|
||||
var qrcode = document.getElementById("qrcode")
|
||||
var loginUrl = ""
|
||||
var success = "https://ghproxy.com/https://raw.githubusercontent.com/cdle/xdd/main/static/ok.svg";
|
||||
var success = "https://ghproxy.com/https://raw.githubusercontent.com/cdle/jd_study/main/xdd/static/ok.svg";
|
||||
var jumpapp = document.getElementById('jumpapp')
|
||||
var hd = document.getElementById("hd")
|
||||
|
||||
function GetQrCode() {
|
||||
swal("请务必看一遍", "✌️京东APP扫码后 页面跳转即为成功✌️\n❤️打开APP完成新手任务❤️\n❣️京东❣️➨我的➨更多工具➨(农场、萌宠、工厂、宠汪汪、金榜创造营、领现金、健康社区、种豆得豆)\n❣️京喜❣️➨我的➨(农场、牧场、工厂、财富岛)\n❣️金融❣️➨我的➨(种摇钱树、天天提鹅、养猪猪)\n☂️京东账号绑定微信可以更多¥¥☂️\n☠️请关闭免密支付☠️","success")
|
||||
}
|
||||
function showQrcode() {
|
||||
var xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
@ -107,56 +103,38 @@
|
||||
}
|
||||
showQrcode()
|
||||
|
||||
function GetQrCode() {
|
||||
let timeStamp = new Date().getTime();
|
||||
$.get('./qrcode?t=' + timeStamp, function(data) {
|
||||
if (data.err == 0) {
|
||||
$('#qrcontainer').removeClass('hidden');
|
||||
$('#refresh_qrcode').addClass('hidden');
|
||||
$('.landing').addClass('is-loading');
|
||||
qrcode.clear();
|
||||
qrcode.makeCode(data.qrcode);
|
||||
checkLogin(data.user);
|
||||
} else {
|
||||
Swal.fire({
|
||||
text: data.msg,
|
||||
icon: 'error',
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
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(() => {
|
||||
@ -183,5 +161,4 @@
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user