更新于 07-07 03:43

This commit is contained in:
root
2021-07-07 03:43:14 -04:00
parent 403294abbc
commit a80ebf67d9

View File

@@ -72,18 +72,6 @@
<script>
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 () {
qrcode = new QRCode(document.getElementById('qrcode'), {
text: 'sample',
@@ -105,7 +93,7 @@ $(document).ready(function () {
title: '🎈添加成功🎈',
html:
'<div class="cookieCon" style="font-size:12px;">' +
`恭喜你成为第` + UserNum + `名用户` +
`恭喜你成为第` + `${UserNum}` + `名用户` +
`<br />您的账号已经成功添加,时长为一个月` +
'</div>',
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() {
let timeStamp = new Date().getTime();
$.get('./qrcode?t=' + timeStamp, function (data) {
@@ -187,6 +184,8 @@ $(document).ready(function () {
clearInterval(timeId);
do_landing();
}
GetUserCount();
});
</script>
</html>