Commit 207826f8 authored by wends's avatar wends

update login views

parent 4771344d
<template> <template>
<div class="login-container" :style="{ backgroundImage: `url(${backgroundImg})` }"> <div class="login-container">
<div class="content">
<div class="left">
<img :src="loginBackground" alt="">
</div>
<div class="right">
<div class="logo-container"> <div class="logo-container">
<!-- <h1>灵雀</h1>--> <!-- <h1>灵雀</h1>-->
<img :src="logo" alt=""> <img :src="logo" alt="">
...@@ -66,6 +70,8 @@ ...@@ -66,6 +70,8 @@
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">登录</el-button> <el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">登录</el-button>
</el-form> </el-form>
</div>
</div>
<div class="bottom-container"> <div class="bottom-container">
copyright© 2019 苏州英思唯智能科技有限公司. copyright© 2019 苏州英思唯智能科技有限公司.
...@@ -75,7 +81,8 @@ ...@@ -75,7 +81,8 @@
<script> <script>
import md5 from 'md5' import md5 from 'md5'
import logo from '@/assets/logo-login.jpg' import loginBackground from '@/assets/login-background.png'
import logo from '@/assets/logo-login.png'
import backgroundImg from '@/assets/background-img.svg' import backgroundImg from '@/assets/background-img.svg'
import { getCaptcha } from '@/api/components/basic-services' import { getCaptcha } from '@/api/components/basic-services'
...@@ -109,6 +116,7 @@ export default { ...@@ -109,6 +116,7 @@ export default {
otherQuery: {}, otherQuery: {},
logo: logo, logo: logo,
backgroundImg: backgroundImg, backgroundImg: backgroundImg,
loginBackground: loginBackground,
captchaUrl: '' captchaUrl: ''
} }
}, },
...@@ -251,7 +259,7 @@ $cursor: rgba(0,0,0,.65); ...@@ -251,7 +259,7 @@ $cursor: rgba(0,0,0,.65);
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
$bg:#f0f2f5; $bg:#29569a;
$dark_gray:#889aa4; $dark_gray:#889aa4;
$light_gray:#eee; $light_gray:#eee;
$cursor: rgba(0,0,0,.65); $cursor: rgba(0,0,0,.65);
...@@ -264,10 +272,28 @@ $cursor: rgba(0,0,0,.65); ...@@ -264,10 +272,28 @@ $cursor: rgba(0,0,0,.65);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
background-size: cover; background-size: cover;
.content{
display: flex;
max-width: 1200px;
margin: 0 auto;
justify-content: space-around;
align-items: center;
height: 100vh;
.left{
width: 560px;
margin-right: 80px;
img{
width: 100%;
}
}
.right{
flex-shrink: 0;
width: 520px;
margin-left: 20px;
margin-right: 20px;
.logo-container{ .logo-container{
max-width: 300px; max-width: 300px;
margin: 100px auto 50px auto; margin: 0 auto 20px auto;
text-align: center; text-align: center;
padding-left: 20px; padding-left: 20px;
padding-right: 20px; padding-right: 20px;
...@@ -276,7 +302,6 @@ $cursor: rgba(0,0,0,.65); ...@@ -276,7 +302,6 @@ $cursor: rgba(0,0,0,.65);
width: 100%; width: 100%;
} }
} }
.login-form { .login-form {
background-color: #fff; background-color: #fff;
position: relative; position: relative;
...@@ -301,6 +326,8 @@ $cursor: rgba(0,0,0,.65); ...@@ -301,6 +326,8 @@ $cursor: rgba(0,0,0,.65);
} }
} }
} }
}
}
.tips { .tips {
font-size: 14px; font-size: 14px;
...@@ -344,7 +371,7 @@ $cursor: rgba(0,0,0,.65); ...@@ -344,7 +371,7 @@ $cursor: rgba(0,0,0,.65);
user-select: none; user-select: none;
} }
.bottom-container{ .bottom-container{
color: rgba(0,0,0,0.45); color: rgba(255,255,255, 0.75);
font-size: 14px; font-size: 14px;
position: absolute; position: absolute;
bottom: 20px; bottom: 20px;
...@@ -355,25 +382,12 @@ $cursor: rgba(0,0,0,.65); ...@@ -355,25 +382,12 @@ $cursor: rgba(0,0,0,.65);
left: 0; left: 0;
right: 0; right: 0;
} }
}
@media (min-width: 992px) { @media (max-width: 1200px) {
.login-container{ .content{
.logo-container{ .left{
margin-top: 120px; display: none;
}
}
}
@media (min-width: 1200px) {
.login-container{
.logo-container{
margin-top: 150px;
}
} }
}
@media (min-width: 1400px) {
.login-container{
.logo-container{
margin-top: 200px;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment