登录页面修改样式
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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: '刷新',
|
||||
|
||||
@@ -6,13 +6,14 @@ import { status } from 'nprogress'
|
||||
|
||||
export default {
|
||||
login: {
|
||||
title: '福莱瑞达WMS系统',
|
||||
logIn: '登录',
|
||||
title: '福 莱 瑞 达 W M S 系 统',
|
||||
logIn: '登 录',
|
||||
username: '账号',
|
||||
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: '刷新',
|
||||
|
||||
@@ -1,60 +1,63 @@
|
||||
<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>
|
||||
<lang-select class="set-language" />
|
||||
<el-form-item prop="username">
|
||||
<el-input
|
||||
v-model="loginForm.username"
|
||||
type="text"
|
||||
auto-complete="off"
|
||||
:placeholder="$t('login.username')"
|
||||
>
|
||||
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item prop="password">
|
||||
<el-input
|
||||
v-model="loginForm.password"
|
||||
type="password"
|
||||
auto-complete="off"
|
||||
:placeholder="$t('login.password')"
|
||||
@keyup.enter.native="handleLogin"
|
||||
>
|
||||
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item prop="code" v-if="captchaEnabled">
|
||||
<el-input
|
||||
v-model="loginForm.code"
|
||||
auto-complete="off"
|
||||
:placeholder="$t('login.code')"
|
||||
style="width: 63%"
|
||||
@keyup.enter.native="handleLogin"
|
||||
>
|
||||
<svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
|
||||
</el-input>
|
||||
<div class="login-code">
|
||||
<img :src="codeUrl" @click="getCode" class="login-code-img"/>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">{{ $t('login.rememberMe') }}</el-checkbox>
|
||||
<el-form-item style="width:100%;">
|
||||
<el-button
|
||||
:loading="loading"
|
||||
size="medium"
|
||||
type="primary"
|
||||
style="width:100%;"
|
||||
@click.native.prevent="handleLogin"
|
||||
>
|
||||
<span v-if="!loading">{{ $t('login.logIn') }}</span>
|
||||
<span v-else>登 录 中...</span>
|
||||
</el-button>
|
||||
<div style="float: right;" v-if="register">
|
||||
<router-link class="link-type" :to="'/register'">立即注册</router-link>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<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
|
||||
v-model="loginForm.username"
|
||||
type="text"
|
||||
auto-complete="off"
|
||||
:placeholder="$t('login.username')"
|
||||
>
|
||||
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item prop="password">
|
||||
<el-input
|
||||
v-model="loginForm.password"
|
||||
type="password"
|
||||
auto-complete="off"
|
||||
:placeholder="$t('login.password')"
|
||||
@keyup.enter.native="handleLogin"
|
||||
>
|
||||
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item prop="code" v-if="captchaEnabled">
|
||||
<el-input
|
||||
v-model="loginForm.code"
|
||||
auto-complete="off"
|
||||
:placeholder="$t('login.code')"
|
||||
style="width: 63%"
|
||||
@keyup.enter.native="handleLogin"
|
||||
>
|
||||
<svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
|
||||
</el-input>
|
||||
<div class="login-code">
|
||||
<img :src="codeUrl" @click="getCode" class="login-code-img"/>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">{{ $t('login.rememberMe') }}</el-checkbox>
|
||||
<el-form-item style="width:100%;">
|
||||
<el-button
|
||||
:loading="loading"
|
||||
size="medium"
|
||||
type="primary"
|
||||
style="width:100%;height: 45px;font-size: 16px;"
|
||||
@click.native.prevent="handleLogin"
|
||||
>
|
||||
<span v-if="!loading">{{ $t('login.logIn') }}</span>
|
||||
<span v-else>登 录 中...</span>
|
||||
</el-button>
|
||||
<div style="float: right;" v-if="register">
|
||||
<router-link class="link-type" :to="'/register'">立即注册</router-link>
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user