登录页面修改样式

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', password: 'Password',
code: 'Code', code: 'Code',
rememberMe: 'Remember Me', 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: { tagsView: {
refresh: 'Refresh', refresh: 'Refresh',

View File

@@ -12,7 +12,8 @@ export default {
password: 'Jelszó', password: 'Jelszó',
code: 'Ellenőrző kód', code: 'Ellenőrző kód',
rememberMe: 'Jelszó megjegyzése', 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: { tagsView: {
refresh: '刷新', refresh: '刷新',

View File

@@ -6,13 +6,14 @@ import { status } from 'nprogress'
export default { export default {
login: { login: {
title: '福莱瑞达WMS系统', title: '福 莱 瑞 达 W M S 系 统',
logIn: '登录', logIn: '登 录',
username: '账号', username: '账号',
password: '密码', password: '密码',
code: '验证码', code: '验证码',
rememberMe: '记住密码', rememberMe: '记住密码',
bottom:'Copyright © 2025 ForTucky All Rights Reserved.400-1882-319' bottom:'Copyright © 2025 ForTucky All Rights Reserved.400-1882-319',
accountLogin: '账户登录'
}, },
tagsView: { tagsView: {
refresh: '刷新', refresh: '刷新',

View File

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