You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.9 KiB
84 lines
2.9 KiB
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta http-equiv="Content-Type" content="text/html; charset=${charset}"> |
|
<meta name="renderer" content="webkit"> |
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> |
|
<title>错误</title> |
|
<script type="text/javascript" |
|
src="${fineServletURL}/file?path=/com/fr/plugin/cpic/web/layui/jquery-3.6.0.min.js"></script> |
|
<script type="text/javascript" src="${fineServletURL}/file?path=/com/fr/plugin/cpic/web/layui/layui.js"></script> |
|
<link href="${fineServletURL}/file?path=/com/fr/plugin/cpic/web/layui/css/layui.css" rel="stylesheet"> |
|
</head> |
|
<body> |
|
|
|
</body> |
|
<script> |
|
layui.use(function () { |
|
var fineServletURL = "${fineServletURL}"; |
|
var type = "${type}"; |
|
var homepath = "${homepath}"; |
|
var message = "${message}"; |
|
var layer = layui.layer |
|
, form = layui.form |
|
, laypage = layui.laypage |
|
, element = layui.element |
|
, laydate = layui.laydate |
|
, util = layui.util |
|
, dropdown = layui.dropdown |
|
, tree = layui.tree |
|
, table = layui.table; |
|
|
|
// 弹出报错信息 |
|
//显示自动关闭倒计秒数 |
|
layer.alert(message, { |
|
time: 10 * 1000 |
|
, success: function (layero, index) { |
|
var timeNum = this.time / 1000, setText = function (start) { |
|
layer.title((start ? timeNum : --timeNum), index); |
|
}; |
|
setText(!0); |
|
this.timer = setInterval(setText, 1000); |
|
if (timeNum <= 0) clearInterval(this.timer); |
|
} |
|
, end: function () { |
|
clearInterval(this.timer); |
|
if (type === 'NN') { |
|
// 不做操作 |
|
} |
|
if (type === 'YY') { |
|
// console.log("登出"); |
|
// 登出 |
|
$.ajax({ |
|
type: "POST", |
|
headers: { |
|
"Authorization": "Bearer " + getCookie("fine_auth_token") |
|
}, |
|
url: "${fineServletURL}/logout", |
|
contentType: "application/json", |
|
success: function (res) { |
|
// 返回首页 |
|
window.location = window.location.origin + fineServletURL + "/home" + homepath; |
|
} |
|
}); |
|
} |
|
} |
|
}); |
|
|
|
function getCookie(cookieName) { |
|
const strCookie = document.cookie |
|
const cookieList = strCookie.split(';') |
|
|
|
for (let i = 0; i < cookieList.length; i++) { |
|
const arr = cookieList[i].split('=') |
|
if (cookieName === arr[0].trim()) { |
|
return arr[1] |
|
} |
|
} |
|
|
|
return '' |
|
} |
|
|
|
}); |
|
</script> |
|
</html> |