From 505c79665beaa574aa915de46e645332b06ca4b4 Mon Sep 17 00:00:00 2001 From: bighuixiang <472705331@qq.com> Date: Thu, 19 Jun 2025 10:21:17 +0800 Subject: [PATCH] Refactor code structure for improved readability and maintainability --- src/component/LoginPage/login/enterprise.vue | 1887 ++++++++------- src/component/LoginPage/login/personal.vue | 1773 +++++++------- src/component/LoginPage/login/school.vue | 1891 ++++++++------- .../mainPage/signUp/registerModel.vue | 2065 +++++++++-------- 4 files changed, 3768 insertions(+), 3848 deletions(-) diff --git a/src/component/LoginPage/login/enterprise.vue b/src/component/LoginPage/login/enterprise.vue index 42a79785..e9a66258 100644 --- a/src/component/LoginPage/login/enterprise.vue +++ b/src/component/LoginPage/login/enterprise.vue @@ -1,140 +1,115 @@ \ No newline at end of file + diff --git a/src/component/LoginPage/login/personal.vue b/src/component/LoginPage/login/personal.vue index ee92e163..b744e615 100644 --- a/src/component/LoginPage/login/personal.vue +++ b/src/component/LoginPage/login/personal.vue @@ -1,228 +1,201 @@ \ No newline at end of file + diff --git a/src/component/LoginPage/login/school.vue b/src/component/LoginPage/login/school.vue index 174af49c..21b16f5b 100644 --- a/src/component/LoginPage/login/school.vue +++ b/src/component/LoginPage/login/school.vue @@ -1,140 +1,115 @@ \ No newline at end of file + diff --git a/src/component/mainPage/signUp/registerModel.vue b/src/component/mainPage/signUp/registerModel.vue index eb46a071..3297147c 100644 --- a/src/component/mainPage/signUp/registerModel.vue +++ b/src/component/mainPage/signUp/registerModel.vue @@ -1,112 +1,167 @@ \ No newline at end of file + .login_form_content { + margin-top: 4rem; + position: relative; + &[state="2"] { + > * { + opacity: 0; + } + .login_form_email { + opacity: 1; + } + } + .password_input_block { + position: relative; + + .password_show_icon { + position: absolute; + font-size: 2.4rem; + right: 2rem; + top: 1.7rem; + cursor: pointer; + } + > .conditionShow { + bottom: 0; + position: absolute; + right: 0; + left: auto; + transform: translateY(-5rem); + background: #404040; + color: #fff; + font-size: 1.4rem; + padding: 2rem; + border-radius: 2rem; + > .item { + display: flex; + align-items: center; + margin-bottom: 0.5rem; + &:last-child { + margin-bottom: 0; + } + > .icon { + margin-right: 1rem; + i { + display: flex; + // &.fi-br-cross-small{ + // color: red; + // } + } + } + } + } + } + + .login_form_input { + width: 100%; + height: 5rem; + margin-top: 1rem; + border: 0.1rem solid #dfdfdf; + border-radius: 2.5rem; + padding-left: 2.1rem; + line-height: 5rem; + font-size: 1.4rem; + box-sizing: border-box; + outline: none; + transition: all 0.3s; + &:hover { + border: 0.1rem solid #000; + } + &::placeholder { + color: #a5b0c2; + } + &.active { + border: 0.1rem solid red; + } + } + } + + .email_last_step { + // margin-top: 4rem; + .email_last_step_bottom { + padding: 0 40px; + } + .email_last_step_block { + padding: 10px; + border-bottom: 2px solid; + box-sizing: border-box; + display: flex; + align-items: center; + justify-content: space-between; + .email_last_step_content { + margin-left: 1rem; + font-size: 2.2rem; + font-weight: bold; + color: #030303; + } + .email_last_step_block_icon { + cursor: pointer; + margin-right: 1rem; + height: 20px; + } + } + + .fi-br-arrow-left { + font-size: 2.5rem; + font-weight: bold; + color: #030303; + transform: translateY(1rem); + display: inline-block; + } + } + + .login_submit_button { + height: 5rem; + background: #000; + border-radius: 2.5rem; + line-height: 5rem; + text-align: center; + font-size: 1.8rem; + font-weight: 500; + color: #ffffff; + cursor: pointer; + transition: all 0.3s; + &:hover { + background: #3c3c3c; + } + &[state="2"] { + cursor: not-allowed; + } + } + .login_text { + font-size: 1.6rem; + margin-top: 4rem; + color: #151515; + display: flex; + justify-content: flex-end; + + .forget_password_text { + cursor: pointer; + } + } + } + + .forget_password_content { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 60rem; + background: #ffffff; + box-shadow: -0.3rem 2rem 5.9rem 0px rgba(200, 200, 200, 0.3); + border-radius: 1rem; + padding: 3rem 6rem 6.5rem; + box-sizing: border-box; + + .forget_password_content_block { + cursor: pointer; + } + + .fi-br-arrow-left { + font-size: 3.8rem; + font-weight: bold; + color: #030303; + transform: translateY(1rem); + display: inline-block; + } + .forget_password_content_title { + font-size: 3.2rem; + font-weight: bold; + color: #030303; + margin-left: 2rem; + } + + .forget_passored_form_content { + margin-top: 3.5rem; + + .forget_passored_form_title { + font-size: 2.4rem; + font-weight: bold; + color: #030303; + display: flex; + justify-content: space-between; + box-sizing: border-box; + } + + .forget_passored_form_input { + width: 100%; + height: 5rem; + margin-top: 1rem; + border: 0.1rem solid #dfdfdf; + border-radius: 2.5rem; + padding-left: 2.1rem; + line-height: 5rem; + font-size: 1.4rem; + box-sizing: border-box; + outline: none; + + &::placeholder { + color: #a5b0c2; + } + } + } + + .forget_verif_code_des { + font-size: 2.4rem; + font-weight: bold; + color: #030303; + margin-top: 3.5rem; + } + + .forget_submit_button { + height: 5rem; + background: #000; + border-radius: 2.5rem; + line-height: 5rem; + text-align: center; + font-size: 1.8rem; + font-weight: 500; + color: #ffffff; + cursor: pointer; + } + } + } + + .marign_top20 { + margin-top: 2rem; + } + + .marign_top22 { + margin-top: 2.2rem; + } + + .marign_top30 { + margin-top: 3rem; + } + .marign_top40 { + margin-top: 4rem; + } + .thirdPartyLogin { + display: flex; + // justify-content: flex-start; + > div { + position: relative; + margin-right: 1rem; + > .mask { + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + z-index: 2; + cursor: pointer; + } + } + } + .tip_content { + font-size: 1.3rem; + font-weight: bold; + color: #000; + cursor: pointer; + } + + .email_last_step_des { + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 4rem; + margin-bottom: 2rem; + + .sent_email_content { + font-size: 1.8rem; + font-weight: bold; + color: #a5b0c2; + } + + .email_tip_content { + font-size: 1.4rem; + color: #030303; + } + } +} +