mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2026-03-24 19:07:41 +08:00
更新于 07-07 03:43
This commit is contained in:
@@ -72,18 +72,6 @@
|
|||||||
<script>
|
<script>
|
||||||
var qrcode, userCookie, timeId, UserNum;
|
var qrcode, userCookie, timeId, UserNum;
|
||||||
|
|
||||||
function GetUserCount() {
|
|
||||||
let timeStamp = new Date().getTime();
|
|
||||||
$.get('./GetUserCount?t=' + timeStamp, function (data) {
|
|
||||||
if (data.err == 0) {
|
|
||||||
UserNum = data.msg - 1;
|
|
||||||
document.getElementById("UserNum").innerHTML=data.msg;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
GetUserCount();
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
qrcode = new QRCode(document.getElementById('qrcode'), {
|
qrcode = new QRCode(document.getElementById('qrcode'), {
|
||||||
text: 'sample',
|
text: 'sample',
|
||||||
@@ -105,7 +93,7 @@ $(document).ready(function () {
|
|||||||
title: '🎈添加成功🎈',
|
title: '🎈添加成功🎈',
|
||||||
html:
|
html:
|
||||||
'<div class="cookieCon" style="font-size:12px;">' +
|
'<div class="cookieCon" style="font-size:12px;">' +
|
||||||
`恭喜你成为第` + UserNum + `名用户` +
|
`恭喜你成为第` + `${UserNum}` + `名用户` +
|
||||||
`<br />您的账号已经成功添加,时长为一个月` +
|
`<br />您的账号已经成功添加,时长为一个月` +
|
||||||
'</div>',
|
'</div>',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
@@ -140,6 +128,15 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function GetUserCount() {
|
||||||
|
let timeStamp = new Date().getTime();
|
||||||
|
$.get('./GetUserCount?t=' + timeStamp, function (data) {
|
||||||
|
if (data.err == 0) {
|
||||||
|
document.getElementById("UserNum").innerHTML=data.msg;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function JumpToApp() {
|
function JumpToApp() {
|
||||||
let timeStamp = new Date().getTime();
|
let timeStamp = new Date().getTime();
|
||||||
$.get('./qrcode?t=' + timeStamp, function (data) {
|
$.get('./qrcode?t=' + timeStamp, function (data) {
|
||||||
@@ -187,6 +184,8 @@ $(document).ready(function () {
|
|||||||
clearInterval(timeId);
|
clearInterval(timeId);
|
||||||
do_landing();
|
do_landing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GetUserCount();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user