|
|
@ -1,13 +1,5 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="wrap"> |
|
|
|
<div class="wrap"> |
|
|
|
<div class="shapes"> |
|
|
|
|
|
|
|
<img class="shape1" src="@/assets/img/shapes/shape1.png" alt=""> |
|
|
|
|
|
|
|
<img class="shape2" src="@/assets/img/shapes/shape2.png" alt=""> |
|
|
|
|
|
|
|
<img class="shape3" src="@/assets/img/shapes/shape3.png" alt=""> |
|
|
|
|
|
|
|
<img class="shape4" src="@/assets/img/shapes/shape4.png" alt=""> |
|
|
|
|
|
|
|
<img class="shape5" src="@/assets/img/shapes/shape5.png" alt=""> |
|
|
|
|
|
|
|
<img class="shape6" src="@/assets/img/shapes/shape6.png" alt=""> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="login"> |
|
|
|
<div class="login"> |
|
|
|
<div class="form"> |
|
|
|
<div class="form"> |
|
|
|
<h6 class="title">欢迎使用请登录</h6> |
|
|
|
<h6 class="title">欢迎使用请登录</h6> |
|
|
@ -117,6 +109,7 @@ export default { |
|
|
|
this.$refs.login.validate(valid => { |
|
|
|
this.$refs.login.validate(valid => { |
|
|
|
if (valid) { |
|
|
|
if (valid) { |
|
|
|
this.login(this.form).then(() => { |
|
|
|
this.login(this.form).then(() => { |
|
|
|
|
|
|
|
window.opener && window.opener.location.reload() // 刷新官网 |
|
|
|
let redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : '/index' |
|
|
|
let redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : '/index' |
|
|
|
this.$router.replace(redirect) |
|
|
|
this.$router.replace(redirect) |
|
|
|
}).catch(res => { |
|
|
|
}).catch(res => { |
|
|
@ -204,46 +197,22 @@ export default { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
<style scoped lang="scss"> |
|
|
|
.wrap { |
|
|
|
.wrap { |
|
|
|
min-height: 100%; |
|
|
|
min-height: 100%; |
|
|
|
background-color: #F3F6FA; |
|
|
|
background-color: #F3F6FA; |
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
.shapes{ |
|
|
|
|
|
|
|
img{ |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.shape1{ |
|
|
|
|
|
|
|
top: 123px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.shape2{ |
|
|
|
|
|
|
|
top: 238px; |
|
|
|
|
|
|
|
left: 35px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.shape3{ |
|
|
|
|
|
|
|
top: 485px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.shape4{ |
|
|
|
|
|
|
|
bottom: 285px; |
|
|
|
|
|
|
|
right: 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.shape5{ |
|
|
|
|
|
|
|
bottom: 145px; |
|
|
|
|
|
|
|
right: 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.shape6{ |
|
|
|
|
|
|
|
bottom: 0; |
|
|
|
|
|
|
|
right: 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.login{ |
|
|
|
.login{ |
|
|
|
z-index: 4; |
|
|
|
min-height: calc(100vh - 70px); |
|
|
|
position: absolute; |
|
|
|
padding-top: calc((100vh - 611px) / 2); |
|
|
|
top: 48%; |
|
|
|
background: url(../../../assets/img/shapes/shape1.png) (0 123px)/auto no-repeat, |
|
|
|
left: 50%; |
|
|
|
url(../../../assets/img/shapes/shape2.png) (35px 238px)/auto no-repeat, |
|
|
|
transform: translate(-50%, -50%); |
|
|
|
url(../../../assets/img/shapes/shape3.png) (0 485px)/auto no-repeat, |
|
|
|
width: 436px; |
|
|
|
url(../../../assets/img/shapes/shape4.png) (right 50%)/auto no-repeat, |
|
|
|
|
|
|
|
url(../../../assets/img/shapes/shape5.png) (right 80%)/auto no-repeat, |
|
|
|
|
|
|
|
url(../../../assets/img/shapes/shape6.png) (right bottom)/auto no-repeat; |
|
|
|
.form{ |
|
|
|
.form{ |
|
|
|
|
|
|
|
width: 436px; |
|
|
|
padding: 38px 38px 60px; |
|
|
|
padding: 38px 38px 60px; |
|
|
|
|
|
|
|
margin: 0 auto 0; |
|
|
|
border-radius: 6px; |
|
|
|
border-radius: 6px; |
|
|
|
background-color: #fff; |
|
|
|
background-color: #fff; |
|
|
|
.title{ |
|
|
|
.title{ |
|
|
@ -330,15 +299,8 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.footer{ |
|
|
|
.copyright{ |
|
|
|
z-index: 3; |
|
|
|
|
|
|
|
position: fixed; |
|
|
|
|
|
|
|
bottom: 0; |
|
|
|
|
|
|
|
left: 0; |
|
|
|
|
|
|
|
width: 100%; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.copyright{ |
|
|
|
|
|
|
|
padding: 18px 0; |
|
|
|
padding: 18px 0; |
|
|
|
font-size: 12px; |
|
|
|
font-size: 12px; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
@ -350,11 +312,16 @@ export default { |
|
|
|
opacity: .8; |
|
|
|
opacity: .8; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.tips { |
|
|
|
.tips { |
|
|
|
margin: 0 0 10px 5px; |
|
|
|
margin: 0 0 10px 5px; |
|
|
|
font-size: 14px; |
|
|
|
font-size: 14px; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
color: #666; |
|
|
|
color: #666; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@media (max-height: 680px) { |
|
|
|
|
|
|
|
.wrap .login { |
|
|
|
|
|
|
|
padding: 40px 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |