Commit 25be0312 by xinla

登录页优化

1 parent 54db166e
<template> <template>
<div class="login"> <div class="login">
<div class="login-wrap">
<img class="login-bg1" src="@/assets/image/login_bg1.png" alt="" />
<img class="login-bg2" src="@/assets/image/login_bg2.png" alt="" />
<img class="login-bg3" src="@/assets/image/login_bg3.png" alt="" />
<div class="login-form-wrap">
<el-form <el-form
ref="loginForm" ref="loginForm"
:model="loginForm" :model="loginForm"
...@@ -90,6 +95,9 @@ ...@@ -90,6 +95,9 @@
</a> </a>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div>
</div>
<!-- 底部 --> <!-- 底部 -->
<div class="el-login-footer"> <div class="el-login-footer">
<span>Copyright © 2018-2019 LinkWechat All Rights Reserved.</span> <span>Copyright © 2018-2019 LinkWechat All Rights Reserved.</span>
...@@ -249,13 +257,13 @@ export default { ...@@ -249,13 +257,13 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100%; height: 100%;
background-image: url('../assets/image/login-background.png'); // background-image: url('../assets/image/login-background.png');
background-size: cover; background-size: cover;
} }
.title { .title {
margin: 0px auto 30px auto; margin: 0px auto 30px auto;
text-align: center; text-align: center;
color: #707070; color: #027dfe;
} }
.login-form { .login-form {
...@@ -263,6 +271,8 @@ export default { ...@@ -263,6 +271,8 @@ export default {
background: #ffffff; background: #ffffff;
width: 400px; width: 400px;
padding: 25px 25px 5px 25px; padding: 25px 25px 5px 25px;
position: relative;
top: 120px;
.el-input { .el-input {
height: 38px; height: 38px;
input { input {
...@@ -314,4 +324,34 @@ export default { ...@@ -314,4 +324,34 @@ export default {
.el-dialog__body { .el-dialog__body {
padding: 0px 20px; padding: 0px 20px;
} }
[class*='login-bg'] {
position: absolute;
z-index: -1;
}
.login-form-wrap {
position: relative;
background: #fff;
height: 609px;
top: 50px;
left: 100px;
}
.login-wrap {
position: relative;
width: 1180px;
height: 720px;
}
.login-bg1 {
top: 0;
left: 0;
}
.login-bg2 {
top: 50px;
left: 370px;
z-index: 10;
}
.login-bg3 {
top: 220px;
right: 25px;
z-index: 20;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!