Commit d2b6c85b by xhw

更新

parent bd3c2d92
......@@ -96,7 +96,7 @@
<body>
<!-- 弹窗 -->
<div id="successModal" class="modal">
<p id="text">提交成功!3 秒后跳转...</p>
<p id="text"></p>
</div>
<div class="img"></div>
......@@ -229,17 +229,17 @@
const modal = document.getElementById('successModal');
modal.style.display = 'block';
// 3 秒后跳转
// 5 秒后跳转
setTimeout(() => {
window.location.href = `https://admin.mindepoch.com/#/mobile?DeviceId=${data.DevicdId}`
}, 5000);
//一秒一变化
let i = 5;
var countNumber = 5;
var timer = setInterval(() => {
--i;
document.getElementById("text").innerHTML = `提交成功!${i} 秒后跳转...`
if(i==0){
countNumber--;
document.getElementById("text").innerHTML = `提交成功!${countNumber} 秒后跳转...`
if(countNumber==0){
clearInterval(timer)
}
},1000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment