Commit d2b6c85b by xhw

更新

parent bd3c2d92
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<body> <body>
<!-- 弹窗 --> <!-- 弹窗 -->
<div id="successModal" class="modal"> <div id="successModal" class="modal">
<p id="text">提交成功!3 秒后跳转...</p> <p id="text"></p>
</div> </div>
<div class="img"></div> <div class="img"></div>
...@@ -229,17 +229,17 @@ ...@@ -229,17 +229,17 @@
const modal = document.getElementById('successModal'); const modal = document.getElementById('successModal');
modal.style.display = 'block'; modal.style.display = 'block';
// 3 秒后跳转 // 5 秒后跳转
setTimeout(() => { setTimeout(() => {
window.location.href = `https://admin.mindepoch.com/#/mobile?DeviceId=${data.DevicdId}` window.location.href = `https://admin.mindepoch.com/#/mobile?DeviceId=${data.DevicdId}`
}, 5000); }, 5000);
//一秒一变化 //一秒一变化
let i = 5; var countNumber = 5;
var timer = setInterval(() => { var timer = setInterval(() => {
--i; countNumber--;
document.getElementById("text").innerHTML = `提交成功!${i} 秒后跳转...` document.getElementById("text").innerHTML = `提交成功!${countNumber} 秒后跳转...`
if(i==0){ if(countNumber==0){
clearInterval(timer) clearInterval(timer)
} }
},1000) },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