bkjxxxw/WebContent/static/baidu/js/artDialog/custom_exit_system.js

23 lines
770 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 退出系统提示框 */
function exit_system(){
var timer;
art.dialog.confirm('您确认退出系统?', function(){
var that = this, i = 5;
var fn = function () {
i --;
//由于art.dialog.tips的锁屏属性默认为false所以修改了iframeTools.source.js原文件中将其改变传参的形式
art.dialog.tips('系统将在<font color="red"> ' + (i+1) + '</font> 秒后关闭',1,true);
!i && clearInterval(timer);
if(!i){
top.location.href='/control/exit.html';
}
};
timer = setInterval(fn, 1000);
fn();
}, function(){
art.dialog.tips('您取消了操作!');
});
}
function wait_time(){
art.dialog.tips('即将退出系统!',i);
};