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