248 lines
4.8 KiB
HTML
248 lines
4.8 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>VueAdmin - 管理后台</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#app {
|
|
width: 100%;
|
|
height: 100vh;
|
|
}
|
|
|
|
.loading-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
z-index: 9999;
|
|
transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
|
|
}
|
|
|
|
.loading-container.hidden {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.loading-logo {
|
|
width: 120px;
|
|
height: 120px;
|
|
border-radius: 20px;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
margin-bottom: 40px;
|
|
animation: logoFloat 3s ease-in-out infinite;
|
|
}
|
|
|
|
.loading-logo img {
|
|
width: 80px;
|
|
height: 80px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
@keyframes logoFloat {
|
|
0%, 100% {
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
transform: translateY(-10px);
|
|
}
|
|
}
|
|
|
|
.loading-text {
|
|
color: #ffffff;
|
|
font-size: 32px;
|
|
font-weight: 600;
|
|
margin-bottom: 15px;
|
|
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
animation: fadeInUp 0.8s ease-out;
|
|
}
|
|
|
|
.loading-subtitle {
|
|
color: rgba(255, 255, 255, 0.85);
|
|
font-size: 16px;
|
|
margin-bottom: 50px;
|
|
animation: fadeInUp 0.8s ease-out 0.2s backwards;
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.spinner {
|
|
width: 60px;
|
|
height: 60px;
|
|
position: relative;
|
|
animation: spinnerRotate 2s linear infinite;
|
|
}
|
|
|
|
.spinner-circle {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
border: 4px solid rgba(255, 255, 255, 0.2);
|
|
border-top-color: #ffffff;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.spinner-circle:nth-child(2) {
|
|
width: 70%;
|
|
height: 70%;
|
|
top: 15%;
|
|
left: 15%;
|
|
border-top-color: rgba(255, 255, 255, 0.8);
|
|
animation: spinnerRotate 1.5s linear infinite reverse;
|
|
}
|
|
|
|
.spinner-circle:nth-child(3) {
|
|
width: 40%;
|
|
height: 40%;
|
|
top: 30%;
|
|
left: 30%;
|
|
border-top-color: #ffffff;
|
|
animation: spinnerRotate 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spinnerRotate {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.loading-tips {
|
|
position: absolute;
|
|
bottom: 60px;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-size: 14px;
|
|
text-align: center;
|
|
animation: pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% {
|
|
opacity: 0.5;
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 200px;
|
|
height: 3px;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 3px;
|
|
margin-top: 30px;
|
|
overflow: hidden;
|
|
animation: fadeInUp 0.8s ease-out 0.4s backwards;
|
|
}
|
|
|
|
.progress-bar-inner {
|
|
width: 0%;
|
|
height: 100%;
|
|
background: #ffffff;
|
|
border-radius: 3px;
|
|
animation: progressLoading 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes progressLoading {
|
|
0% {
|
|
width: 0%;
|
|
margin-left: 0;
|
|
}
|
|
50% {
|
|
width: 70%;
|
|
margin-left: 15%;
|
|
}
|
|
100% {
|
|
width: 0%;
|
|
margin-left: 100%;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- 加载页面 -->
|
|
<div id="loading" class="loading-container">
|
|
<div class="loading-logo">
|
|
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="width: 50px; height: 50px;">
|
|
<rect width="24" height="24" rx="4" fill="#667eea"/>
|
|
<path d="M7 8H17V10H7V8Z" fill="white"/>
|
|
<path d="M7 11H17V13H7V11Z" fill="white"/>
|
|
<path d="M7 14H14V16H7V14Z" fill="white"/>
|
|
</svg>
|
|
</div>
|
|
<div class="loading-text">VueAdmin</div>
|
|
<div class="loading-subtitle">正在加载管理后台...</div>
|
|
<div class="spinner">
|
|
<div class="spinner-circle"></div>
|
|
<div class="spinner-circle"></div>
|
|
<div class="spinner-circle"></div>
|
|
</div>
|
|
<div class="progress-bar">
|
|
<div class="progress-bar-inner"></div>
|
|
</div>
|
|
<div class="loading-tips">首次加载可能需要几秒钟,请耐心等待</div>
|
|
</div>
|
|
|
|
<!-- Vue 应用挂载点 -->
|
|
<div id="app"></div>
|
|
|
|
<!-- 隐藏加载页面的脚本 -->
|
|
<script>
|
|
window.addEventListener('load', function() {
|
|
setTimeout(function() {
|
|
var loading = document.getElementById('loading');
|
|
if (loading) {
|
|
loading.classList.add('hidden');
|
|
setTimeout(function() {
|
|
if (loading.parentNode) {
|
|
loading.parentNode.removeChild(loading);
|
|
}
|
|
}, 500);
|
|
}
|
|
}, 500);
|
|
});
|
|
</script>
|
|
|
|
<script type="module" src="/src/main.js"></script>
|
|
</body>
|
|
</html>
|