add appLoading,Partial static resource shift

This commit is contained in:
sakuya 2021-06-27 21:05:11 +08:00
parent 38967545ac
commit 24feaf7979
5 changed files with 29 additions and 5 deletions

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@ -13,7 +13,31 @@
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript
enabled. Please enable it to continue.</strong>
</noscript>
<div id="app" class="aminui"></div>
<div id="app" class="aminui">
<div class="app-loading">
<div class="app-loading__logo">
<img src="img/logo.png"/>
</div>
<div class="app-loading__loader"></div>
<div class="app-loading__title"><%= htmlWebpackPlugin.options.title %></div>
</div>
<style>
.app-loading {position: absolute;top:0px;left:0px;right:0px;bottom:0px;display: flex;justify-content: center;align-items: center;flex-direction: column;background: #fff;}
.app-loading__logo {margin-bottom: 30px;}
.app-loading__logo img {width: 100px;vertical-align: bottom;}
.app-loading__loader {width: 30px;height: 30px;border: 5px solid transparent;border-top-color: #000;border-radius: 50%;animation: .5s loader linear infinite;position: relative;}
.app-loading__loader:before {content: '';display: block;width: inherit;height: inherit;position: absolute;top: -5px;left: -5px;border: 5px solid #ccc;border-radius: 50%;opacity: .5;}
.app-loading__title {font-size: 30px;color: #333;margin-top: 30px;}
@keyframes loader {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
</div>
<!-- built files will be auto injected -->
</body>
</html>

View File

@ -4,7 +4,7 @@
<header class="adminui-header">
<div class="adminui-header-left">
<div class="logo-bar">
<img class="logo" :alt="appName" src="@/assets/logo.png">
<img class="logo" :alt="appName" src="img/logo.png">
<span>{{ $CONFIG.APP_NAME }}</span>
</div>
<ul v-if="!ismobile" class="nav">

View File

@ -2,9 +2,9 @@
<div class="login_container">
<div class="login_body">
<div class="login-sidebox">
<div class="login-sidebox" style="background:url('img/login-left.png') 0 0 no-repeat #607089;">
<div class="login-logo">
<img class="logo" :alt="appName" src="@/assets/logo.png">{{appName}}
<img class="logo" :alt="appName" src="img/logo.png">{{appName}}
</div>
<div class="login-title">
<h2>面面俱到的中后台前端框架</h2>
@ -74,7 +74,7 @@
<style scoped>
.login_container {position: absolute;top:50%;left:50%;width: 900px;margin: 0 auto;z-index: 1;transform: translate(-50%, -50%);}
.login_body {width: inherit;display: flex;box-shadow: 0px 20px 80px 0px rgba(0,0,0,0.3);}
.login-sidebox {width: 50%;background:url(~@/assets/login-left.png) 0 0 no-repeat #607089;padding: 60px;color: #fff;position: relative;}
.login-sidebox {width: 50%;padding: 60px;color: #fff;position: relative;}
.login-logo {font-size: 35px;display: flex;align-items: center;}
.login-logo .logo {margin-right: 10px;width: 50px;height: 50px;}