107 lines
2.0 KiB
HTML
107 lines
2.0 KiB
HTML
<div id="__app-loading__" class="app-loading">
|
|
<div class="app-loading-content">
|
|
<img src="/images/logo.png" alt="优医" class="loading-logo" />
|
|
<div class="loading-text">优医官网管理后台</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
;(function () {
|
|
const themeConfig = JSON.parse(localStorage.getItem('themeConfig') || '{}')
|
|
const isDark = themeConfig.themeMode === 'dark'
|
|
const htmlHasDark = document.documentElement.classList.contains('dark')
|
|
|
|
if (isDark || htmlHasDark) {
|
|
document.documentElement.classList.add('dark')
|
|
const loadingEl = document.getElementById('__app-loading__')
|
|
if (loadingEl) {
|
|
loadingEl.classList.add('dark-mode')
|
|
}
|
|
}
|
|
})()
|
|
</script>
|
|
|
|
<style>
|
|
.app-loading {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #fff;
|
|
z-index: 99999;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.app-loading-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.loading-logo {
|
|
width: auto;
|
|
height: 72px;
|
|
max-width: 200px;
|
|
object-fit: contain;
|
|
animation: logoPulse 1.6s ease-in-out infinite;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.loading-logo {
|
|
height: 56px;
|
|
max-width: 160px;
|
|
}
|
|
}
|
|
|
|
@keyframes logoPulse {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
opacity: 0.82;
|
|
transform: scale(0.96);
|
|
}
|
|
}
|
|
|
|
.loading-text {
|
|
color: #666;
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
transition: color 0.3s ease;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.loading-text {
|
|
font-size: 22px;
|
|
}
|
|
}
|
|
|
|
.app-loading.dark-mode {
|
|
background: #1d1e1f;
|
|
}
|
|
|
|
.app-loading.dark-mode .loading-text {
|
|
color: #a8abb2;
|
|
}
|
|
|
|
html.dark .app-loading {
|
|
background: #1d1e1f;
|
|
}
|
|
|
|
html.dark .app-loading .loading-text {
|
|
color: #a8abb2;
|
|
}
|
|
|
|
.app-loading.hidden {
|
|
display: none;
|
|
}
|
|
</style>
|