|
@@ -2,23 +2,42 @@
|
|
<div class="back-layout">
|
|
<div class="back-layout">
|
|
<div id="userLayout" :class="['user-layout-wrapper', device]">
|
|
<div id="userLayout" :class="['user-layout-wrapper', device]">
|
|
<div class="container">
|
|
<div class="container">
|
|
- <div class="poster-img">
|
|
|
|
- <img src="/static/rightImg.png?v=320" />
|
|
|
|
- </div>
|
|
|
|
- <div class="right-form">
|
|
|
|
|
|
+ <div class="left_con">
|
|
<div class="top">
|
|
<div class="top">
|
|
- <div class="header">
|
|
|
|
- <a-row>
|
|
|
|
- <a-col>
|
|
|
|
- <a href="/">
|
|
|
|
- <span class="title">{{ systemTitle }}</span>
|
|
|
|
- <small class="desc">V1.0</small>
|
|
|
|
- </a>
|
|
|
|
- </a-col>
|
|
|
|
- </a-row>
|
|
|
|
|
|
+ <img class="logo" src="@/assets/image/logo.png" alt="" />
|
|
|
|
+ <span>进销存管理系统</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mid">
|
|
|
|
+ <div class="desc">
|
|
|
|
+ <span>提高管理<span class="blue">效率</span> </span>
|
|
|
|
+ <a-divider style="background-color: #787b80; height: 22px" type="vertical" />
|
|
|
|
+ <span>优化资源<span class="blue">配置</span></span>
|
|
|
|
+ <a-divider style="background-color: #787b80; height: 22px" type="vertical" />
|
|
|
|
+ <span>提高决策<span class="blue">准确性</span></span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="smText">
|
|
|
|
+ Improve management efficiency, optimize resource allocation, and enhance decision-making accuracy
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <route-view></route-view>
|
|
|
|
|
|
+ <div class="animate" id="circle"></div>
|
|
|
|
+ <!-- <img src="/static/rightImg.png?v=320" /> -->
|
|
|
|
+ </div>
|
|
|
|
+ <div class="right_con">
|
|
|
|
+ <div class="right-form">
|
|
|
|
+ <div class="top">
|
|
|
|
+ <div class="header">
|
|
|
|
+ <a-row>
|
|
|
|
+ <a-col>
|
|
|
|
+ <a href="/">
|
|
|
|
+ <span class="title">欢迎登录</span>
|
|
|
|
+ <small class="desc">进销存后台系统</small>
|
|
|
|
+ </a>
|
|
|
|
+ </a-col>
|
|
|
|
+ </a-row>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <route-view></route-view>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -28,7 +47,8 @@
|
|
<script>
|
|
<script>
|
|
import RouteView from '@/components/layouts/RouteView'
|
|
import RouteView from '@/components/layouts/RouteView'
|
|
import { mixinDevice } from '@/utils/mixin.js'
|
|
import { mixinDevice } from '@/utils/mixin.js'
|
|
-
|
|
|
|
|
|
+import animationData from '@/assets/loginData.json'
|
|
|
|
+import lottie from 'lottie-web'
|
|
export default {
|
|
export default {
|
|
name: 'UserLayout',
|
|
name: 'UserLayout',
|
|
components: { RouteView },
|
|
components: { RouteView },
|
|
@@ -45,6 +65,15 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
document.body.classList.add('userLayout')
|
|
document.body.classList.add('userLayout')
|
|
|
|
+ const params = {
|
|
|
|
+ container: document.getElementById('circle'),
|
|
|
|
+ renderer: 'svg',
|
|
|
|
+ loop: true,
|
|
|
|
+ autoplay: true,
|
|
|
|
+ animationData: animationData,
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.anim = lottie.loadAnimation(params)
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
document.body.classList.remove('userLayout')
|
|
document.body.classList.remove('userLayout')
|
|
@@ -80,15 +109,72 @@ export default {
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
|
|
|
+<style lang="less" scoped>
|
|
.back-layout {
|
|
.back-layout {
|
|
- width: 100%;
|
|
|
|
- height: 100%;
|
|
|
|
- background-image: url(/static/bgimg.png?v=1);
|
|
|
|
- background-size: cover;
|
|
|
|
- background-repeat: no-repeat;
|
|
|
|
- position: relative;
|
|
|
|
- overflow: hidden;
|
|
|
|
|
|
+ height: 100vh;
|
|
|
|
+
|
|
|
|
+ .container {
|
|
|
|
+ width: 100%;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ .left_con {
|
|
|
|
+ width: 900px;
|
|
|
|
+ height: 100vh;
|
|
|
|
+ background: url(../../assets//image/left_bg.png) no-repeat;
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+
|
|
|
|
+ .top {
|
|
|
|
+ font-size: 24px;
|
|
|
|
+ color: #172b4d;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+ margin: 102px 0 36px 171px;
|
|
|
|
+ .logo {
|
|
|
|
+ width: 58px;
|
|
|
|
+ height: 48px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .mid {
|
|
|
|
+ margin-left: 171px;
|
|
|
|
+ .desc {
|
|
|
|
+ font-size: 28px;
|
|
|
|
+ font-weight: 700;
|
|
|
|
+ color: #172b4d;
|
|
|
|
+ font-family: Alimama ShuHeiTi;
|
|
|
|
+ .blue {
|
|
|
|
+ color: #0252ce;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .smText {
|
|
|
|
+ color: #787b80;
|
|
|
|
+ font-size: 11px;
|
|
|
|
+ font-family: Actor;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .animate {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 95%;
|
|
|
|
+ margin-top: -100px;
|
|
|
|
+ margin-left: -100px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .right_con {
|
|
|
|
+ background: url(../../assets//image/right_bg.png) no-repeat;
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ flex: 1;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // width: 100%;
|
|
|
|
+ // height: 100%;
|
|
|
|
+ // background-image: url(/static/bgimg.png?v=1);
|
|
|
|
+ // background-size: cover;
|
|
|
|
+ // background-repeat: no-repeat;
|
|
|
|
+ // position: relative;
|
|
|
|
+ // overflow: hidden;
|
|
}
|
|
}
|
|
#userLayout.user-layout-wrapper.mobile {
|
|
#userLayout.user-layout-wrapper.mobile {
|
|
position: fixed;
|
|
position: fixed;
|
|
@@ -118,11 +204,11 @@ export default {
|
|
</style>
|
|
</style>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
#userLayout.user-layout-wrapper {
|
|
#userLayout.user-layout-wrapper {
|
|
- position: fixed;
|
|
|
|
- left: 50%;
|
|
|
|
- top: 12%;
|
|
|
|
- margin-left: -543px;
|
|
|
|
- height: 100%;
|
|
|
|
|
|
+ // position: fixed;
|
|
|
|
+ // left: 50%;
|
|
|
|
+ // top: 12%;
|
|
|
|
+ // margin-left: -543px;
|
|
|
|
+ // height: 100%;
|
|
|
|
|
|
&.mobile {
|
|
&.mobile {
|
|
.container {
|
|
.container {
|
|
@@ -131,7 +217,7 @@ export default {
|
|
width: 98%;
|
|
width: 98%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .poster-img {
|
|
|
|
|
|
+ .left_con {
|
|
display: none;
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -149,18 +235,19 @@ export default {
|
|
|
|
|
|
.right-form {
|
|
.right-form {
|
|
background-size: 100%;
|
|
background-size: 100%;
|
|
- position: relative;
|
|
|
|
- width: 340px;
|
|
|
|
- height: 460px;
|
|
|
|
|
|
+ width: 459px;
|
|
|
|
+ height: 502px;
|
|
background: rgba(255, 255, 255, 1);
|
|
background: rgba(255, 255, 255, 1);
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
- right: 0;
|
|
|
|
- top: 0;
|
|
|
|
- padding: 10px 30px 0 30px;
|
|
|
|
- margin-top: 50px;
|
|
|
|
|
|
+ // padding: 10px 30px 0 30px;
|
|
|
|
+ // margin-top: 50px;
|
|
-webkit-box-shadow: 0 2px 6px 0 rgb(200 200 200);
|
|
-webkit-box-shadow: 0 2px 6px 0 rgb(200 200 200);
|
|
box-shadow: 0 2px 6px 0 rgb(200 200 200);
|
|
box-shadow: 0 2px 6px 0 rgb(200 200 200);
|
|
- overflow: hidden;
|
|
|
|
|
|
+ // top: 0;
|
|
|
|
+ // bottom: 0;
|
|
|
|
+ // left: 0;
|
|
|
|
+ // right: 0;
|
|
|
|
+ // margin: auto;
|
|
|
|
|
|
a {
|
|
a {
|
|
text-decoration: none;
|
|
text-decoration: none;
|
|
@@ -175,20 +262,17 @@ export default {
|
|
margin-top: 35px;
|
|
margin-top: 35px;
|
|
margin-bottom: 35px;
|
|
margin-bottom: 35px;
|
|
.title {
|
|
.title {
|
|
- font-size: 35px;
|
|
|
|
- color: #666;
|
|
|
|
- font-family: 'Chinese Quote', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
|
|
|
|
- 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
|
|
- 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
|
|
- font-weight: 700;
|
|
|
|
|
|
+ font-size: 32px;
|
|
|
|
+ color: #333;
|
|
|
|
+ font-weight: 600;
|
|
position: relative;
|
|
position: relative;
|
|
top: 2px;
|
|
top: 2px;
|
|
}
|
|
}
|
|
.desc {
|
|
.desc {
|
|
- font-size: 16px;
|
|
|
|
- color: #666;
|
|
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ color: #adb5bd;
|
|
margin-top: 12px;
|
|
margin-top: 12px;
|
|
- margin-left: 10px;
|
|
|
|
|
|
+ margin-left: 19px;
|
|
margin-bottom: 40px;
|
|
margin-bottom: 40px;
|
|
}
|
|
}
|
|
}
|
|
}
|