修改登录注册忘记密码样式
This commit is contained in:
parent
a30f5e3ac2
commit
ed72ce3cd1
@ -5,7 +5,12 @@
|
|||||||
<div class="login-content">
|
<div class="login-content">
|
||||||
<!-- 系统标题 -->
|
<!-- 系统标题 -->
|
||||||
<div style="margin-right: 150px;">
|
<div style="margin-right: 150px;">
|
||||||
<h1 class="system-login-title">欢迎登录</h1>
|
<h1 class="system-login-title">
|
||||||
|
<span v-if="!isRegisterMode && !isForgotPasswordMode">欢迎登录</span>
|
||||||
|
<span v-if="isRegisterMode && !isForgotPasswordMode">注册</span>
|
||||||
|
<span v-if="isForgotPasswordMode">找回密码</span>
|
||||||
|
|
||||||
|
</h1>
|
||||||
<h1 class="system-title">平衡体态检测系统</h1>
|
<h1 class="system-title">平衡体态检测系统</h1>
|
||||||
|
|
||||||
<!-- 登录页面 -->
|
<!-- 登录页面 -->
|
||||||
@ -67,9 +72,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
<!-- 注册页面 -->
|
<!-- 注册页面 -->
|
||||||
<el-card v-if="isRegisterMode && !isForgotPasswordMode" class="register-card">
|
<el-card v-if="isRegisterMode && !isForgotPasswordMode" class="register-card">
|
||||||
<div class="card-header">注册</div>
|
|
||||||
|
|
||||||
<div class="register-form">
|
<div class="register-form">
|
||||||
<div class="form-item">
|
<div class="form-item">
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
@ -146,8 +149,6 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
<!-- 忘记密码页面 -->
|
<!-- 忘记密码页面 -->
|
||||||
<el-card v-if="isForgotPasswordMode" class="forgot-password-card">
|
<el-card v-if="isForgotPasswordMode" class="forgot-password-card">
|
||||||
<div class="card-header">找回密码</div>
|
|
||||||
|
|
||||||
<!-- 未显示密码时的输入表单 -->
|
<!-- 未显示密码时的输入表单 -->
|
||||||
<div v-if="!showRetrievedPassword" class="forgot-password-form">
|
<div v-if="!showRetrievedPassword" class="forgot-password-form">
|
||||||
<div class="form-item">
|
<div class="form-item">
|
||||||
@ -229,7 +230,7 @@ import { getBackendUrl,systemAPI } from '../services/api.js'
|
|||||||
const BACKEND_URL = getBackendUrl()
|
const BACKEND_URL = getBackendUrl()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const authStore = useAuthStore()
|
const authStore = useAuthStore()
|
||||||
|
const loginTitle =ref('欢迎登录')
|
||||||
// 页面状态控制
|
// 页面状态控制
|
||||||
const isRegisterMode = ref(false)
|
const isRegisterMode = ref(false)
|
||||||
const isForgotPasswordMode = ref(false)
|
const isForgotPasswordMode = ref(false)
|
||||||
@ -706,13 +707,14 @@ const copyPassword = async () => {
|
|||||||
/* 注册卡片 */
|
/* 注册卡片 */
|
||||||
.register-card {
|
.register-card {
|
||||||
width: 482px;
|
width: 482px;
|
||||||
background-color: #1D1C21;
|
background-color: transparent;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-width: 3px;
|
border-width: 3px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: #1D1C21;
|
border-color: transparent;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 30px 25px !important;
|
padding: 0px 0px !important;
|
||||||
|
box-shadow: 0 0 0 transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 卡片头部标题 */
|
/* 卡片头部标题 */
|
||||||
@ -918,20 +920,13 @@ const copyPassword = async () => {
|
|||||||
border-color: #999;
|
border-color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.confirm-btn {
|
|
||||||
background-color: #266fff ;
|
|
||||||
border-color: #266fff ;
|
|
||||||
color: #fff;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.confirm-btn:hover {
|
.confirm-btn:hover {
|
||||||
transform: translateY(-1px);
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 注册表单样式 */
|
/* 注册表单样式 */
|
||||||
.register-form {
|
.register-form {
|
||||||
padding: 20px 0;
|
padding: 0px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-item {
|
.form-item {
|
||||||
@ -942,21 +937,22 @@ const copyPassword = async () => {
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: transparent;
|
height: 60px;
|
||||||
color: #fff;
|
background-color: rgba(255, 255, 255, 0.1);
|
||||||
font-size: 16px;
|
box-sizing: border-box;
|
||||||
height: 49px;
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: transparent;
|
||||||
|
border-radius: 3px;
|
||||||
/* background-color: #004080;
|
/* background-color: #004080;
|
||||||
|
|
||||||
border-radius: 6px; */
|
border-radius: 6px; */
|
||||||
border: 1px solid rgb(67, 67, 67);
|
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-wrapper:focus-within {
|
.input-wrapper:focus-within {
|
||||||
border-color: #cccccc;
|
border-color: rgba(11, 148, 213, 1);
|
||||||
box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-icon {
|
.input-icon {
|
||||||
@ -971,7 +967,7 @@ const copyPassword = async () => {
|
|||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
padding: 12px 0;
|
padding: 12px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1012,9 +1008,15 @@ const copyPassword = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.back-btn {
|
.back-btn {
|
||||||
background-color: transparent;
|
border-color: #597194;
|
||||||
border-color: #266fff;
|
background-color: #597194;
|
||||||
color: #266fff;
|
border-radius: 4px;
|
||||||
|
color: rgba(255, 255, 255, 0.6);
|
||||||
|
font-family: 'Noto Sans SC';
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
font-size: 20px;
|
||||||
|
color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-btn:hover {
|
.back-btn:hover {
|
||||||
@ -1024,9 +1026,13 @@ const copyPassword = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.submit-btn {
|
.submit-btn {
|
||||||
background-color: #266fff;
|
background-color: rgba(11, 148, 213, 1);
|
||||||
border-color: #266fff;
|
border-color: rgba(11, 148, 213, 1) !important;
|
||||||
color: #fff;
|
font-family: 'Noto Sans SC';
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
font-size: 20px;
|
||||||
|
color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.submit-btn:hover {
|
.submit-btn:hover {
|
||||||
@ -1036,17 +1042,18 @@ const copyPassword = async () => {
|
|||||||
/* 忘记密码页面样式 */
|
/* 忘记密码页面样式 */
|
||||||
.forgot-password-card {
|
.forgot-password-card {
|
||||||
width: 482px;
|
width: 482px;
|
||||||
background-color: #1D1C21;
|
background-color: transparent;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-width: 3px;
|
border-width: 3px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: #1D1C21;
|
border-color: transparent;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 30px 25px !important;
|
box-shadow: 0 0 0 transparent;
|
||||||
|
padding: 0px 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.forgot-password-form {
|
.forgot-password-form {
|
||||||
padding: 20px 0;
|
padding: 0px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.forgot-input {
|
.forgot-input {
|
||||||
@ -1127,10 +1134,13 @@ const copyPassword = async () => {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
border: 1px solid;
|
background-color: rgba(11, 148, 213, 1);
|
||||||
background-color: #266fff;
|
border-color: rgba(11, 148, 213, 1) !important;
|
||||||
border-color: #266fff;
|
font-family: 'Noto Sans SC';
|
||||||
color: #fff;
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
font-size: 20px;
|
||||||
|
color: #FFFFFF;
|
||||||
}
|
}
|
||||||
.confirm-btn:hover {
|
.confirm-btn:hover {
|
||||||
transform: translateY(-1px);
|
transform: translateY(-1px);
|
||||||
@ -1140,7 +1150,7 @@ const copyPassword = async () => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 450px;
|
width: 450px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
background-color: rgba(255, 255, 255, 0.1);
|
background-color: rgba(255, 255, 255, 0.1);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
@ -1148,6 +1158,9 @@ const copyPassword = async () => {
|
|||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
.input-box:focus-within {
|
||||||
|
border-color: rgba(11, 148, 213, 1);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user