This commit is contained in:
2026-02-11 15:16:11 +08:00
parent 2720de7f44
commit 1bfe30651e
18 changed files with 444 additions and 689 deletions

View File

@@ -3,245 +3,44 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>VueAdmin - 管理后台</title>
<script src="/public/config.js"></script>
<script>
// 获取项目名称配置
window.__APP_NAME__ = window.SY_CONFIG?.APP_NAME || 'VueAdmin'
document.title = window.__APP_NAME__ + ' - 管理后台'
</script>
<title></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%;
}
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:#f5f5f5}
#app,#loading{width:100%;height:100vh}
#loading{position:fixed;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);z-index:9999;transition:opacity .3s}
#loading.hidden{opacity:0;pointer-events:none}
.logo{width:60px;height:60px;background:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:20px;animation:scale 1s ease-in-out infinite}
.logo svg{width:36px;height:36px}
.text{color:#fff;font-size:24px;font-weight:600;margin-bottom:30px}
.spinner{width:40px;height:40px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:rotate .8s linear infinite}
@keyframes rotate{to{transform:rotate(360deg)}}
@keyframes scale{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
</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 id="loading">
<div class="logo">
<svg viewBox="0 0 24 24" fill="none">
<rect width="24" height="24" rx="4" fill="#667eea"/>
<path d="M7 8h10v2H7V8Z" fill="white"/>
<path d="M7 11h10v2H7v-2Z" fill="white"/>
<path d="M7 14h7v2H7v-2Z" fill="white"/>
</svg>
</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>
<div class="text"><script>document.write(window.__APP_NAME__)</script></div>
<div class="spinner"></div>
</div>
<div id="app"></div>
<script>
window.onload=function(){setTimeout(function(){var e=document.getElementById('loading');e&&e.classList.add('hidden')},300)}
</script>
<script type="module" src="/src/main.js"></script>
</body>
</html>