60 lines
36 KiB
HTML
60 lines
36 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>服务器404错误</title>
|
||
|
|
</head>
|
||
|
|
<style>
|
||
|
|
.exception{margin:150px 0;text-align:center;}.exception .exception-img{margin:15px 30px;display:inline-block;vertical-align:middle;}
|
||
|
|
.exception .exception-text{margin:15px 30px;display:inline-block;vertical-align:middle;}.exception:not(.exception-dark) .exception-content>h1,.exception-content>p{color:#515a6e;}.exception .exception-content>h1{font-size:72px;font-weight:600;margin:0 0 20px 0;}.exception .exception-content>p{font-size:20px;margin:0 0 25px 0;color:#808695;}.button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #ddd;border-color:#ddd;color:#595959;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:12px 20px;font-size:14px;border-radius:4px;}.button-primary{color:#fff;background-color:#409eff;border-color:#409eff;}.button-medium{padding:10px 20px;font-size:14px;border-radius:4px;}
|
||
|
|
|
||
|
|
</style>
|
||
|
|
<body>
|
||
|
|
<div class="exception">
|
||
|
|
<div class="exception-img">
|
||
|
|
<svg data-v-20e69d6c="" width="423" height="341" viewBox="0 0 423 341" xmlns="http://www.w3.org/2000/svg"><g data-v-20e69d6c="" fill="none" fill-rule="evenodd"><g data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" opacity=".6" stroke-linejoin="round" stroke-dasharray="12.15"><path data-v-20e69d6c="" d="M224.993 290.054c-65.929 0-119.375-53.434-119.375-119.35 0-65.915 53.446-119.35 119.375-119.35 65.928 0 119.374 53.435 119.374 119.35 0 65.916-53.446 119.35-119.374 119.35z"></path><path data-v-20e69d6c="" d="M224.823 339.72c-93.378 0-169.076-75.684-169.076-169.043 0-93.36 75.698-169.042 169.076-169.042s169.076 75.683 169.076 169.042c0 93.36-75.698 169.042-169.076 169.042z"></path></g><path data-v-20e69d6c="" fill="#F5F5F5" d="M78.617 196.401l20.278-1.052L84.052 209.2z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M78.617 196.401l20.278-1.052L84.052 209.2z"></path><path data-v-20e69d6c="" d="M22.038 208.972l20.251-8.594 13.665 32.184-20.251 8.594z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M22.038 208.972l20.251-8.594 13.665 32.184-20.251 8.594z"></path><path data-v-20e69d6c="" fill="#F5F5F5" d="M38.867 193.414l4.997-2.12 19.721 46.447-4.997 2.12z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" fill="#F0F2F5" stroke-linejoin="round" d="M38.867 193.414l4.997-2.12 19.721 46.447-4.997 2.12z"></path><path data-v-20e69d6c="" d="M43.485 251.004l18.752-7.958 23.674 55.757-18.751 7.957z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M43.485 251.004l18.752-7.958 23.674 55.757-18.751 7.957z"></path><path data-v-20e69d6c="" d="M48.068 201.196l3.463-1.47 11.313 26.643-3.463 1.47z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M48.068 201.196l3.463-1.47 11.313 26.643-3.463 1.47z"></path><path data-v-20e69d6c="" fill="#F5F5F5" d="M53.783 204.42l8.022-3.405.765 1.802-8.022 3.404z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M53.783 204.42l8.022-3.405.765 1.802-8.022 3.404z"></path><path data-v-20e69d6c="" fill="#F5F5F5" d="M60.283 219.73l8.022-3.404.765 1.802-8.021 3.404z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M60.283 219.73l8.022-3.404.765 1.802-8.021 3.404z"></path><path data-v-20e69d6c="" d="M49.437 239.012l3.405 8.02-1.802.766-3.405-8.022z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M49.437 239.012l3.405 8.02-1.802.766-3.405-8.022z"></path><path data-v-20e69d6c="" d="M17.433 217.134l4.605-8.162 13.665 32.184-9.072-2.359z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M17.433 217.134l4.605-8.162 13.665 32.184-9.072-2.359z"></path><path data-v-20e69d6c="" d="M17.433 217.134l-5.653-3.81 13.666 32.185 1.185-6.712z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M17.433 217.134l-5.653-3.81 13.666 32.185 1.185-6.712z"></path><path data-v-20e69d6c="" d="M14.117 219.19l-5.772-1.165 4.074 9.596 3.171-4.96z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M14.117 219.19l-5.772-1.165 4.074 9.596 3.171-4.96z"></path><path data-v-20e69d6c="" d="M21.375 236.284l-5.772-1.165 4.074 9.595 3.171-4.96z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M21.375 236.284l-5.772-1.165 4.074 9.595 3.171-4.96z"></path><path data-v-20e69d6c="" fill="#F0F2F5" d="M52.498 201.393l2.41-1.023 3.3 7.77-2.41 1.024z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M52.498 201.393l2.41-1.023 3.3 7.77-2.41 1.024z"></path><path data-v-20e69d6c="" fill="#F0F2F5" d="M59.016 216.746l2.411-1.023 3.3 7.77-2.411 1.024z"></path><path data-v-20e69d6c="" stroke="#A3B1BF" stroke-width="1.62" stroke-linejoin="round" d="M59.016 216.746l2.411-1.023 3.3 7.
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="exception-text">
|
||
|
|
<div class="exception-content">
|
||
|
|
<h1>404</h1>
|
||
|
|
<p>抱歉,你访问的页面不存在</p>
|
||
|
|
<div>
|
||
|
|
<button type="button" class="button button-primary button-medium"><span id="back">返回首页</span></button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
<script>
|
||
|
|
// 直接采用原生代码
|
||
|
|
document.getElementById("back").onclick=function(){
|
||
|
|
|
||
|
|
// 清理本地数据
|
||
|
|
var href = window.location.href
|
||
|
|
,pathname = window.location.pathname
|
||
|
|
,search = window.location.search;
|
||
|
|
pathname = pathname.replace(search,'');
|
||
|
|
var data = sessionStorage.getItem('swiftadmin_template');
|
||
|
|
|
||
|
|
if (typeof data !== "object") {
|
||
|
|
data = JSON.parse(data);
|
||
|
|
var TabLists = data.TabLists;
|
||
|
|
console.log(TabLists);
|
||
|
|
for (var i = 0; i < TabLists.length; i++) {
|
||
|
|
if (TabLists[i]['id'] == pathname) {
|
||
|
|
TabLists.splice(i,1);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// 修正数据
|
||
|
|
data.activeTab = TabLists[0]['id'];
|
||
|
|
// 转存数据
|
||
|
|
data = JSON.stringify(data);
|
||
|
|
sessionStorage.setItem('swiftadmin_template',data);
|
||
|
|
}
|
||
|
|
top.window.location.replace(href.substring(0,href.indexOf('.php')+4));
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</html>
|