Compare commits

...

6 Commits

3 changed files with 86 additions and 113 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@ -1,20 +1,9 @@
<template>
<div class="login">
<el-row>
<el-col :span="14">
<div class="left">
<div class="login-title">{{ loginTitle }}</div>
<div class="login-subTitle">专注于农业面向未来自主创新</div>
<div class="login-bgImage">
<img src="@/assets/images/loginBg.svg" alt="" />
</div>
</div>
</el-col>
<el-col :span="10">
<div class="right">
<div class="loginForm-title">系统登录</div>
<div class="loginForm-subTitle">SYSTEM LOGIN</div>
<div class="loginForm-form">
<section class="system_name">数字农业平台</section>
<div class="login_content">
<section class="login_text"></section>
<div>
<el-form label-position="top">
<el-form ref="loginForm" :model="loginForm" :rules="loginRules">
<el-form-item label="账号" prop="username">
@ -42,9 +31,9 @@
</el-row>
</el-form-item>
<el-checkbox v-model="loginForm.rememberMe" style="margin: 0px 0px 25px 0px; color: #000">记住密码</el-checkbox>
<el-checkbox v-model="loginForm.rememberMe" style="margin: 0px 0px 25px 25px; color: #000; transform: scale(1.6)">记住密码</el-checkbox>
<el-form-item style="width: 100%">
<el-form-item class="login_btn" style="width: 100%">
<el-button v-if="!bindAccount" :loading="loading" type="primary" style="width: 100%" @click.native.prevent="handleLogin">
<span v-if="!loading"> </span>
<span v-else> 中...</span>
@ -58,8 +47,6 @@
</el-form>
</div>
</div>
</el-col>
</el-row>
</div>
</template>
@ -266,73 +253,59 @@ export default {
<style lang="scss" scoped>
.login {
.left {
height: 100vh;
background: #109b5e;
overflow: hidden;
.login-title {
padding: 14vh 6vw 0;
display: flex;
align-items: center;
justify-content: center;
padding-bottom: 26px;
color: #fff;
letter-spacing: 11px;
font-size: 50px;
font-weight: 500;
margin-top: 15vh;
}
.login-subTitle {
display: flex;
align-items: center;
justify-content: center;
padding-bottom: 26px;
color: #fff;
font-size: 20px;
}
.login-bgImage {
display: flex;
align-items: center;
justify-content: center;
margin-top: 15vh;
img {
width: 75%;
}
}
}
.right {
justify-content: space-between;
width: 100vw;
height: 100vh;
overflow: hidden;
background: url('../assets/login/loginBG.png') no-repeat fixed center / cover;
.system_name {
padding-top: 8vh;
font-size: 100px;
font-weight: bold;
color: #fff;
font-family: '黑体';
transform: skew(-16deg);
}
.login_content {
.login_text {
margin: 0 auto 60px;
width: 128px;
height: 78px;
background: url('../assets/login/loginText.png') no-repeat;
background-size: 100% 100%;
}
padding: 60px 40px;
width: 640px;
height: 72vh;
background-color: rgba(0, 0, 0, 0.2);
backdrop-filter: blur(18px);
overflow: hidden;
border-radius: 40px;
.loginForm-title {
display: flex;
align-items: center;
justify-content: center;
font-size: 30px;
font-weight: bold;
margin-top: 20vh;
}
.loginForm-subTitle {
display: flex;
align-items: center;
justify-content: center;
color: rgba(22, 23, 26, 0.1);
font-size: 23px;
white-space: nowrap;
letter-spacing: 2px;
margin-top: -10px;
}
.loginForm-form {
padding: 0 25%;
}
.login-captchaBox {
display: flex;
img {
height: 50px;
}
}
//
::v-deep {
.el-form-item {
margin-bottom: 40px;
}
.el-form-item__label {
color: #fff;
}
.login_btn {
margin-top: 40px;
span {
font-family: '黑体';
font-weight: bold;
}
}
.el-input__inner {
height: 50px;
border-radius: 25px;