|
@@ -1,6 +1,12 @@
|
|
|
<template>
|
|
|
<div class="login-container">
|
|
|
<div class="login-from-box">
|
|
|
+ <div class="lang-change">
|
|
|
+ <LangTab></LangTab>
|
|
|
+ </div>
|
|
|
+ <div class="login-icon">
|
|
|
+ <img src="./login-icon.png" alt="" />
|
|
|
+ </div>
|
|
|
<el-form
|
|
|
class="login-form"
|
|
|
ref="loginForm"
|
|
@@ -10,7 +16,6 @@
|
|
|
label-position="left"
|
|
|
>
|
|
|
<h3 class="title">{{ systemName }}</h3>
|
|
|
- <LangTab></LangTab>
|
|
|
<el-form-item prop="username">
|
|
|
<span class="svg-container svg-container_login">
|
|
|
<svg-icon icon-class="user" />
|
|
@@ -62,9 +67,7 @@
|
|
|
{{ $t('li-ji-deng-lu') }}
|
|
|
</button>
|
|
|
</div>
|
|
|
- <div class="tips">
|
|
|
- <!-- <span>Copyright © 2020-2024 <a target="_blank" href="https://www.fuint.cn">fuint.cn</a> 延禾技术 All Rights Reserved.</span> -->
|
|
|
- </div>
|
|
|
+ <div class="tips"></div>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -107,7 +110,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- console.log(this.$t)
|
|
|
this.getCode()
|
|
|
},
|
|
|
methods: {
|
|
@@ -157,9 +159,9 @@ export default {
|
|
|
// 定义新的配色变量
|
|
|
$primary-color: #a9b1b8; // 主色调,蓝色
|
|
|
$secondary-color: #eabc48; // 次色调,深蓝色
|
|
|
-$light-gray: #f5f5f5; // 浅灰色
|
|
|
+$light-gray: #999; // 浅灰色
|
|
|
$dark-gray: #9f8787; // 深灰色
|
|
|
-$background-color: #161212; // 背景色,灰色
|
|
|
+$background-color: #f6f6f6; // 背景色,灰色
|
|
|
|
|
|
/* reset element-ui css */
|
|
|
.login-container {
|
|
@@ -168,9 +170,11 @@ $background-color: #161212; // 背景色,灰色
|
|
|
width: 100%;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
- background: linear-gradient(to bottom right, $primary-color, $secondary-color);
|
|
|
- background-position: center;
|
|
|
+ background: url('./login-bg.png');
|
|
|
+ background-size: 100% 100%;
|
|
|
color: #ffffff;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 4vw 8vw;
|
|
|
|
|
|
::v-deep .el-input {
|
|
|
display: inline-block;
|
|
@@ -180,7 +184,6 @@ $background-color: #161212; // 背景色,灰色
|
|
|
input {
|
|
|
background: transparent;
|
|
|
border: 0px;
|
|
|
- -webkit-appearance: none;
|
|
|
border-radius: 0px;
|
|
|
padding: 12px 5px 12px 15px;
|
|
|
color: $light-gray;
|
|
@@ -202,16 +205,39 @@ $background-color: #161212; // 背景色,灰色
|
|
|
|
|
|
.login-from-box {
|
|
|
position: relative;
|
|
|
- .login-form {
|
|
|
+ display: flex;
|
|
|
+ overflow: hidden;
|
|
|
+ align-items: flex-start;
|
|
|
+ border-radius: 20px;
|
|
|
+ background: #fff;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 4vw 0 0 5vw;
|
|
|
+
|
|
|
+ .lang-change {
|
|
|
position: absolute;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
+ right: 40px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .login-icon {
|
|
|
+ width: calc(100% - 520px);
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-start;
|
|
|
+ overflow: hidden;
|
|
|
+
|
|
|
+ img {
|
|
|
+ width: 38vw;
|
|
|
+ height: 33vw;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .login-form {
|
|
|
width: 520px;
|
|
|
padding: 35px 35px 15px 35px;
|
|
|
- margin: 150px auto;
|
|
|
+ margin: 100px auto;
|
|
|
align-items: center;
|
|
|
color: white;
|
|
|
- background-color: rgba(63, 63, 63, 0.373);
|
|
|
border-radius: 10px;
|
|
|
|
|
|
.login-btn {
|
|
@@ -222,7 +248,8 @@ $background-color: #161212; // 背景色,灰色
|
|
|
margin: 10px 0 36px 0;
|
|
|
font-size: 1.2em;
|
|
|
color: white;
|
|
|
- background: linear-gradient(to right, $primary-color, $secondary-color);
|
|
|
+ background: #f67f20;
|
|
|
+ border-radius: 8px;
|
|
|
border: none;
|
|
|
outline: none;
|
|
|
cursor: pointer;
|
|
@@ -253,9 +280,8 @@ $background-color: #161212; // 背景色,灰色
|
|
|
img {
|
|
|
cursor: pointer;
|
|
|
vertical-align: middle;
|
|
|
- height: 48px;
|
|
|
+ height: 3vw;
|
|
|
height: 100%;
|
|
|
-
|
|
|
border-radius: 1px;
|
|
|
}
|
|
|
}
|
|
@@ -282,7 +308,7 @@ $background-color: #161212; // 背景色,灰色
|
|
|
.title {
|
|
|
font-size: 26px;
|
|
|
font-weight: 400;
|
|
|
- color: $light-gray;
|
|
|
+ color: #000;
|
|
|
margin: 0px auto 20px auto;
|
|
|
text-align: center;
|
|
|
font-weight: bold;
|