mirror of
https://gitee.com/myxzgzs/boyue-kfcode-hasfj.git
synced 2025-06-21 09:29:35 +08:00
59 lines
1.4 KiB
HTML
59 lines
1.4 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: Arial, sans-serif;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
margin: 0;
|
|
background-color: #f8f9fa;
|
|
color: #333;
|
|
}
|
|
.container {
|
|
text-align: center;
|
|
}
|
|
.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 1rem;
|
|
}
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="spinner"></div>
|
|
<p>正在重定向到正确的页面...</p>
|
|
</div>
|
|
|
|
<script>
|
|
// 获取当前URL路径
|
|
const path = window.location.pathname;
|
|
const baseUrl = window.location.origin;
|
|
|
|
// 根据路径重定向到前端路由
|
|
if (path === '/hasfjlaw') {
|
|
window.location.href = baseUrl + '/hasfjlaw';
|
|
} else if (path === '/hasfjcase') {
|
|
window.location.href = baseUrl + '/hasfjcase';
|
|
} else if (path === '/hasfjform') {
|
|
window.location.href = baseUrl + '/hasfjform';
|
|
} else {
|
|
// 默认重定向到首页
|
|
window.location.href = baseUrl;
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |