关闭3秒提示

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2023-06-22 13:46:23 +08:00
parent 963ec1b2ea
commit b23eecb3a0
+8 -8
View File
@@ -110,13 +110,13 @@ function tsPost(url,datas){
if(rs.url){ if(rs.url){
//再来个提示 //再来个提示
tsNotice(rs.msg+'<br /><span class="text-danger" id="notice_daojishi">3</span>秒后自动跳转...'); //tsNotice(rs.msg+'<br /><span class="text-danger" id="notice_daojishi">3</span>秒后自动跳转...');
var step = 3; var step = 0;
var _res = setInterval(function() { var _res = setInterval(function() {
$('#notice_daojishi').html(step); //$('#notice_daojishi').html(step);
step-=1; //step-=1;
if(step <= 0){ if(step <= 0){
window.location = rs.url; window.location = rs.url;
clearInterval(_res);//清除setInterval clearInterval(_res);//清除setInterval
@@ -156,13 +156,13 @@ jQuery(document).ready(function(){
if(rs.url){ if(rs.url){
//再来个提示 //再来个提示
tsNotice(rs.msg+'<br /><span class="text-danger" id="notice_daojishi">3</span>秒后自动跳转...'); //tsNotice(rs.msg+'<br /><span class="text-danger" id="notice_daojishi">3</span>秒后自动跳转...');
var step = 3; var step = 0;
var _res = setInterval(function() { var _res = setInterval(function() {
$('#notice_daojishi').html(step); //$('#notice_daojishi').html(step);
step-=1; //step-=1;
if(step <= 0){ if(step <= 0){
window.location = rs.url; window.location = rs.url;
clearInterval(_res);//清除setInterval clearInterval(_res);//清除setInterval