登录页面修改样式

This commit is contained in:
猫猫guowen
2025-07-05 17:36:03 +08:00
parent f24ca20206
commit bbc4f1c708
4 changed files with 88 additions and 62 deletions

View File

@@ -42,7 +42,8 @@ export default {
password: 'Password',
code: 'Code',
rememberMe: 'Remember Me',
bottom:'Copyright © 2025 ForTucky All Rights Reserved.400-1882-319'
bottom:'Copyright © 2025 ForTucky All Rights Reserved.400-1882-319',
accountLogin: 'Account Login'
},
tagsView: {
refresh: 'Refresh',

View File

@@ -12,7 +12,8 @@ export default {
password: 'Jelszó',
code: 'Ellenőrző kód',
rememberMe: 'Jelszó megjegyzése',
bottom:'Copyright © 2025 ForTucky All Rights Reserved.400-1882-319'
bottom:'Copyright © 2025 ForTucky All Rights Reserved.400-1882-319',
accountLogin: 'Fiók bejelentkezés'
},
tagsView: {
refresh: '刷新',

View File

@@ -12,7 +12,8 @@ export default {
password: '密码',
code: '验证码',
rememberMe: '记住密码',
bottom:'Copyright © 2025 ForTucky All Rights Reserved.400-1882-319'
bottom:'Copyright © 2025 ForTucky All Rights Reserved.400-1882-319',
accountLogin: '账户登录'
},
tagsView: {
refresh: '刷新',

View File

@@ -1,7 +1,9 @@
<template>
<div class="login">
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
<div class="login-wrapper">
<h3 class="title">{{ $t('login.title') }}</h3>
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
<div class="form-title">{{ $t('login.accountLogin') }}</div>
<lang-select class="set-language" />
<el-form-item prop="username">
<el-input
@@ -44,7 +46,7 @@
:loading="loading"
size="medium"
type="primary"
style="width:100%;"
style="width:100%;height: 45px;font-size: 16px;"
@click.native.prevent="handleLogin"
>
<span v-if="!loading">{{ $t('login.logIn') }}</span>
@@ -55,6 +57,7 @@
</div>
</el-form-item>
</el-form>
</div>
<!-- 底部 -->
<div class="el-login-footer">
<span>{{ $t('login.bottom') }}</span>
@@ -167,17 +170,29 @@ export default {
background-image: url("../assets/images/login-background.jpg");
background-size: cover;
}
.login-wrapper {
background: rgba(255, 255, 255, 0.5);
border-radius: 20px;
padding: 40px;
padding-top: 50px;
width: 480px;
height: 500px;
}
.title {
margin: 0px auto 30px auto;
text-align: center;
color: #707070;
font-size: 28px;
font-weight: 600;
color: #696a6d;
}
.login-form {
border-radius: 6px;
border-radius: 4px;
background: #ffffff;
width: 400px;
padding: 25px 25px 5px 25px;
padding: 30px 30px 15px 30px;
.el-input {
height: 38px;
input {
@@ -219,4 +234,12 @@ export default {
.login-code-img {
height: 38px;
}
.form-title {
font-size: 16px;
font-weight: bold;
color: #818181;
text-align: left;
margin-bottom: 20px;
border-right: 3px solid #bebaba;
}
</style>