<template>
|
<div id="userLayout" :class="['user-layout-wrapper', device]">
|
<div class="container">
|
<div class="login-form-x">
|
<div class="login-form-y">
|
<div class="top">
|
<div class="header">
|
<div class="logo">
|
<img src="~@/assets/logo.png" alt="logo">
|
</div>
|
<span class="title">奥甫自动化</span>
|
</div>
|
</div>
|
|
<route-view></route-view>
|
</div>
|
</div>
|
|
<div class="footer">
|
<!-- <div class="links">
|
<a href="_self">帮助</a>
|
<a href="_self">隐私</a>
|
<a href="_self">条款</a>
|
</div> -->
|
<div class="copyright">
|
<p>版权所有 Copyright©上海奥甫自动化系统有限公司</p>
|
<!-- <p>网站建设备案号:沪ICP备17037445号</p> -->
|
</div>
|
</div>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import RouteView from './RouteView'
|
import { mixinDevice } from '@/utils/mixin'
|
|
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>
|
#userLayout.user-layout-wrapper {
|
height: 100%;
|
|
&.mobile {
|
.container {
|
.main {
|
max-width: 368px;
|
width: 98%;
|
}
|
}
|
}
|
|
.container {
|
width: 100%;
|
min-height: 100%;
|
background-color: #ffffff;
|
background-image: url("../assets/login_bk.png");
|
background-attachment: fixed;
|
background-repeat: no-repeat;
|
background-position: top left;
|
background-size: 100% 100%;
|
padding: 110px 0 144px;
|
position: relative;
|
display: flex;
|
align-items: center;
|
.login-form-x{
|
width:100%;
|
box-sizing: border-box;
|
display: flex;
|
padding-right: 12%;
|
justify-content: flex-end;
|
.login-form-y{
|
display: flex;
|
flex-direction: column;
|
min-width: 260px;
|
width: 368px;
|
padding:20px 20px 10px 20px;
|
background-color: #fff;
|
border-radius: 20px;
|
opacity: 0.8;
|
}
|
}
|
|
a {
|
text-decoration: none;
|
}
|
|
.top {
|
width: 100%;
|
margin-bottom: 20px;
|
.header {
|
display:flex;
|
flex-direction: column;
|
justify-content: center;
|
|
.logo {
|
display:flex;
|
justify-content: center;
|
height:40px;
|
img{
|
height:100%;
|
width:auto;
|
}
|
}
|
|
.title {
|
font-size: 33px;
|
color: rgba(0, 0, 0, .85);
|
font-family: Avenir, 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
font-weight: 600;
|
display:flex;
|
justify-content: center;
|
}
|
}
|
}
|
|
.main {
|
width: 100%;
|
}
|
|
.footer {
|
position: absolute;
|
width: 100%;
|
bottom: 0;
|
padding: 0 16px;
|
margin: 48px 0 12px;
|
text-align: center;
|
color: #F0F8FF;
|
|
.links {
|
margin-bottom: 8px;
|
font-size: 14px;
|
a {
|
transition: all 0.3s;
|
&:not(:last-child) {
|
margin-right: 40px;
|
}
|
}
|
}
|
.copyright {
|
font-size: 14px;
|
p{
|
margin-bottom: 0;
|
}
|
}
|
}
|
}
|
}
|
</style>
|