<template>
|
<div id="userLayout" :class="['user-layout-wrapper', device]">
|
<div class="root" style="display: flex;flex-direction: row;">
|
<div class="left" style="flex: 0 0 50%;">
|
<div class="company-box">
|
<div style="width: 40%;text-align: center" class="ml-50 animate-enter-x1 ">
|
上海兰宝
|
</div>
|
</div>
|
<div class="container">
|
<div class="info-box">
|
<img src="~@/assets/login-box-bg.svg" style="width: 40%;" class="ml-50 animate-enter-x2" />
|
<div class="ml-50 animate-enter-x3 trans" style="margin-top: 60px;font-weight: 500;color: white;text-align: left;font-size: 26px;width: 40%;">
|
研发信息化系统</div>
|
<div class="ml-50 animate-enter-x4 trans" style="color: white;font-weight: 500;margin-top: 15px;width: 40%;text-align: left;">研发中心私有云平台</div>
|
</div>
|
</div>
|
</div>
|
<div class="right" style="flex: 0 0 50%;">
|
<div class="container">
|
<div class="top">
|
<div class="header">
|
<a href="/">
|
<!-- <img src="~@/assets/logo.svg" class="logo" alt="logo">-->
|
<span class="title"></span>
|
</a>
|
</div>
|
<div class="desc">
|
|
</div>
|
</div>
|
|
<route-view></route-view>
|
|
<div class="footer">
|
<div class="links">
|
<a style="display: inline-block;opacity: 0;" class="animate-enter-x6" href="#" ></a>
|
<a style="display: inline-block;opacity: 0;" class="animate-enter-x6" href="#" >构建于研发虚拟化服务器
|
</a>
|
<a style="display: inline-block;opacity: 0;" class="animate-enter-x6" href="#" ></a>
|
</div>
|
<div class="copyright" >
|
|
<span style="opacity: 0;display: inline-block;" class="animate-enter-x7"> Copyright © 2023 <a href="" >兰宝</a> 出品</span>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import RouteView from "@/components/layouts/RouteView"
|
import {
|
mixinDevice
|
} from '@/utils/mixin.js'
|
|
export default {
|
name: "UserLayout",
|
components: {
|
RouteView
|
},
|
mixins: [mixinDevice],
|
data() {
|
return {}
|
},
|
mounted() {
|
document.body.classList.add('userLayout')
|
},
|
beforeDestroy() {
|
document.body.classList.remove('userLayout')
|
},
|
}
|
</script>
|
|
<style lang="less" scoped>
|
@keyframes enter-x {
|
0% {
|
transform: translateX(0);
|
opacity: 0
|
}
|
|
100% {
|
transform: translateX(50px);
|
opacity: 1
|
|
}
|
}
|
|
@keyframes enter-x2 {
|
0% {
|
transform: translateX(50px);
|
opacity: 0
|
}
|
|
100% {
|
transform: translateX(0);
|
opacity: 1
|
|
}
|
}
|
|
.animate-enter-x1 {
|
animation: enter-x 0.4s ease-in-out 0.3s;
|
animation-fill-mode: forwards;
|
animation-delay: 0.1s;
|
}
|
.animate-enter-x2 {
|
animation: enter-x 0.4s ease-in-out 0.3s;
|
animation-fill-mode: forwards;
|
animation-delay: 0.2s;
|
}
|
.animate-enter-x3 {
|
animation: enter-x 0.4s ease-in-out 0.3s;
|
animation-fill-mode: forwards;
|
animation-delay: 0.3s;
|
}
|
.animate-enter-x4 {
|
animation: enter-x 0.4s ease-in-out 0.3s;
|
animation-fill-mode: forwards;
|
animation-delay: 0.4s;
|
}
|
|
.animate-enter-x6 {
|
animation: enter-x2 0.4s ease-in-out 0.3s;
|
animation-fill-mode: forwards;
|
animation-delay: 0.6s;
|
}
|
|
.animate-enter-x7 {
|
animation: enter-x2 0.4s ease-in-out 0.3s;
|
animation-fill-mode: forwards;
|
animation-delay: 0.7s;
|
}
|
|
.trans {
|
transition: all 0.2s ease;
|
}
|
|
.ml-50{
|
margin-left: -50px;
|
opacity: 0;
|
}
|
|
|
|
#userLayout.user-layout-wrapper {
|
height: 100%;
|
|
&.mobile {
|
.root {
|
.right {
|
.container {
|
.main {
|
max-width: 368px;
|
width: 98%;
|
}
|
}
|
}
|
}
|
}
|
|
.root {
|
|
width: 100%;
|
height: 100%;
|
position: relative;
|
|
&::before {
|
content: '';
|
position: absolute;
|
width: 100%;
|
height: 100%;
|
z-index: -1;
|
opacity: 1;
|
margin-left: -48%;
|
background-image: url(~@/assets/login-bg.svg);
|
background-position: 100%;
|
background-repeat: no-repeat;
|
background-size: auto 100%;
|
}
|
|
.left {
|
position: relative;
|
|
.company-box {
|
position: absolute;
|
width: 100%;
|
top: 50px;
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
color: white;
|
font-size: 24px;
|
font-weight: 500;
|
}
|
|
.container {
|
|
overflow: hidden;
|
width: 100%;
|
min-height: 100%;
|
position: relative;
|
display: flex;
|
flex-direction: column;
|
justify-content: center;
|
|
.info-box {
|
display: flex;
|
flex-direction: column;
|
width: 100%;
|
justify-content: center;
|
align-items: center;
|
}
|
}
|
}
|
|
.right {
|
|
.container {
|
width: 100%;
|
min-height: 100%;
|
position: relative;
|
padding: 110px 0 144px;
|
|
a {
|
text-decoration: none;
|
}
|
|
.top {
|
text-align: center;
|
|
.header {
|
height: 44px;
|
line-height: 44px;
|
|
.badge {
|
position: absolute;
|
display: inline-block;
|
line-height: 1;
|
vertical-align: middle;
|
margin-left: -12px;
|
margin-top: -10px;
|
opacity: 0.8;
|
}
|
|
.logo {
|
height: 44px;
|
vertical-align: top;
|
margin-right: 16px;
|
border-style: none;
|
}
|
|
.title {
|
font-size: 33px;
|
color: rgba(0, 0, 0, .85);
|
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: 600;
|
position: relative;
|
top: 2px;
|
}
|
}
|
|
.desc {
|
font-size: 14px;
|
color: rgba(0, 0, 0, 0.45);
|
margin-top: 12px;
|
margin-bottom: 40px;
|
}
|
}
|
|
.main {
|
min-width: 260px;
|
width: 368px;
|
margin: 0 auto;
|
}
|
|
.footer {
|
position: absolute;
|
width: 100%;
|
bottom: 0;
|
padding: 0 16px;
|
margin: 48px 0 24px;
|
text-align: center;
|
|
.links {
|
margin-bottom: 8px;
|
font-size: 14px;
|
|
a {
|
color: rgba(0, 0, 0, 0.45);
|
transition: all 0.3s;
|
|
&:not(:last-child) {
|
margin-right: 40px;
|
}
|
}
|
}
|
|
.copyright {
|
color: rgba(0, 0, 0, 0.45);
|
font-size: 14px;
|
}
|
}
|
}
|
}
|
}
|
}
|
</style>
|