-
Notifications
You must be signed in to change notification settings - Fork 272
/
Copy pathkuduan.html
164 lines (155 loc) · 6.86 KB
/
kuduan.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>何必烦忧</title>
<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/[email protected]/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>
</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>
<div id="page-wrapper">
<section id="banner">
<div class="inner">
<h2>人生苦短,何必烦忧</h2>
<p>点击下方按钮开始使用</p>
<ul class="actions">
<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>-->
<!--<a href="https://t.me/jstool" target="_blank" style="color:red;font-weight:bold"> [TG群]</a><br>-->
<!--<a style="color:#00effb;font-weight:bold"> [全自动运行]</a>-->
<br /> <a style="font-size:12px;"> App确认后即可(无视升级提示)</a>
<br /> <a style="font-size:12px;">未添加过的用户会自动新增账号,若已添加则会自动更新有效期(一个月)</a>
</p>
<div class="more">
<!-- <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 />欢迎🧡使用
</div>
</div>
</section>
</div>
<!--<div id="qrcontainer" class="hidden">
<div class="qframe" id="qframe">
<div id="refresh_qrcode" class="hidden">
<div>
<h3>二维码已失效</h3>
<div class="refresh">刷新</div>
</div>
</div>
<div id="qrcode"></div>
<div class="ps-box">
<input type="text" id="ps" placeholder="可在此输入备注名">
</div>
<div class="info">
<a style="color:#aaaaaa;">请使用京东APP扫码</a>
<br> <a style="color:#aaaaaa;">有效期为一个月</a>
<br>
</div>
<div class="qframe-close" title="关闭">✖</div>
</div>
</div>
<div>
</div>-->
</body>
<script>
var timer;
var qrcode = document.getElementById("qrcode")
var loginUrl = ""
var success = "https://ghproxy.com/https://raw.githubusercontent.com/764763903a/xdd-plus/main/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() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
data = JSON.parse(xmlhttp.responseText)
if (data.url && data.url.indexOf("http") != -1) {
qrcode.src = "data:image/png;base64," + data.img
loginUrl = data.url
} else {
showQrcode()
}
}
}
xmlhttp.open("GET", "/api/login/qrcode", true);
xmlhttp.send();
}
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 "登录":
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(() => {
login()
}, 1500);
}
polling()
jumpapp.addEventListener('click', function() {
if (loginUrl) {
window.location.href = `openapp.jdmobile://virtual/ad?params=${encodeURI(
JSON.stringify({
category: 'jump',
des: 'ThirdPartyLogin',
action: 'to',
onekeylogin: 'return',
url: loginUrl,
authlogin_returnurl: 'weixin://',
browserlogin_fromurl: window.location.host,
})
)}`;
} else {
alert('还没加载好,请稍后重试');
}
})
</script>
</html>