mirror of
https://gitee.com/myxzgzs/boyue-kfcode-hasfj.git
synced 2025-06-21 12:29:37 +08:00
79 lines
2.0 KiB
HTML
79 lines
2.0 KiB
HTML
![]() |
<!DOCTYPE html>
|
|||
|
<html lang="zh-CN">
|
|||
|
<head>
|
|||
|
<meta charset="UTF-8">
|
|||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|||
|
<title>重定向中...</title>
|
|||
|
<style>
|
|||
|
body {
|
|||
|
font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
|
|||
|
display: flex;
|
|||
|
justify-content: center;
|
|||
|
align-items: center;
|
|||
|
height: 100vh;
|
|||
|
margin: 0;
|
|||
|
background-color: #f8f9fa;
|
|||
|
color: #333;
|
|||
|
}
|
|||
|
.container {
|
|||
|
text-align: center;
|
|||
|
padding: 2rem;
|
|||
|
border-radius: 8px;
|
|||
|
background-color: white;
|
|||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|||
|
max-width: 90%;
|
|||
|
width: 450px;
|
|||
|
}
|
|||
|
.spinner {
|
|||
|
width: 40px;
|
|||
|
height: 40px;
|
|||
|
border: 4px solid rgba(0, 0, 0, 0.1);
|
|||
|
border-radius: 50%;
|
|||
|
border-top-color: #007bff;
|
|||
|
animation: spin 1s ease-in-out infinite;
|
|||
|
margin: 0 auto 1.5rem;
|
|||
|
}
|
|||
|
@keyframes spin {
|
|||
|
to { transform: rotate(360deg); }
|
|||
|
}
|
|||
|
.message {
|
|||
|
margin-bottom: 1.5rem;
|
|||
|
font-size: 1.1rem;
|
|||
|
}
|
|||
|
</style>
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<div class="container">
|
|||
|
<div class="spinner"></div>
|
|||
|
<p class="message">正在加载法律规定详情...</p>
|
|||
|
</div>
|
|||
|
|
|||
|
<script>
|
|||
|
// 获取URL中的ID参数
|
|||
|
function getQueryParam(name) {
|
|||
|
const urlParams = new URLSearchParams(window.location.search);
|
|||
|
return urlParams.get(name);
|
|||
|
}
|
|||
|
|
|||
|
// 重定向到前端应用
|
|||
|
function redirectToApp() {
|
|||
|
const id = getQueryParam('Id');
|
|||
|
const baseUrl = window.location.origin;
|
|||
|
|
|||
|
if (id) {
|
|||
|
// 使用vue router处理详情页
|
|||
|
window.location.href = `${baseUrl}/#/detail/law/${id}`;
|
|||
|
} else {
|
|||
|
// 如果没有ID参数,重定向到法律规定列表页
|
|||
|
window.location.href = `${baseUrl}/#/hasfjlaw`;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
// 页面加载后立即重定向
|
|||
|
window.onload = function() {
|
|||
|
// 稍微延迟以确保旋转加载效果显示
|
|||
|
setTimeout(redirectToApp, 800);
|
|||
|
};
|
|||
|
</script>
|
|||
|
</body>
|
|||
|
</html>
|