From df43dbd4f80baedb88764ca9545e4b5ec7e1ac73 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Sun, 27 Jul 2025 16:26:34 +0800
Subject: [PATCH] 1

---
 src/page/login/login.vue |  112 ++++++++++++++++++++++++++++++-------------------------
 1 files changed, 61 insertions(+), 51 deletions(-)

diff --git a/src/page/login/login.vue b/src/page/login/login.vue
index 7a36fea..b852d92 100644
--- a/src/page/login/login.vue
+++ b/src/page/login/login.vue
@@ -7,32 +7,20 @@
     <div class="logins_content">
       <div class="login_forms">
         <div class="top_forms">
-          <el-input
-            :placeholder="$t('hj9')"
-            :size="medium"
-            v-model="userName"
-            clearable
-          >
+          <el-input :placeholder="$t('hj9')" :size="medium" v-model="userName" clearable>
           </el-input>
-          <el-input
-            style="margin-top: 0.46rem"
-            show-password
-            :placeholder="$t('hj10')"
-            :size="medium"
-            v-model="userPassword"
-            @input="handleInput()"
-          >
+          <el-input style="margin-top: 0.46rem" show-password :placeholder="$t('hj10')" :size="medium"
+            v-model="userPassword" @input="handleInput()">
           </el-input>
         </div>
         <div class="bottom_btns">
-          <van-button
-            type="info"
-            :disabled="!btnClass"
-            class="butn"
-            @click="loginIN"
-            >{{ $t("立即登录") }}</van-button
-          >
-          <div class="password-operate" data-v-8cc76a7b="">
+          <van-button type="info" :disabled="!btnClass" class="butn" @click="loginIN">
+            {{ $t("立即登录") }}
+          </van-button>
+          <van-button type="info" plain class="butn_2" @click="$router.push('/register')">
+            {{ $t("免費註冊") }}
+          </van-button>
+          <!-- <div class="password-operate" data-v-8cc76a7b="">
             <div class="forget" data-v-8cc76a7b="" @click="getApp()">
               {{ $t("hj12") }}
             </div>
@@ -41,19 +29,14 @@
                 $t("記住帳戶密碼")
               }}</van-checkbox>
             </div>
-          </div>
+          </div> -->
         </div>
       </div>
 
-      <div class="register" data-v-8cc76a7b="">
-        {{ $t("還沒賬號?")
-        }}<span
-          @click="$router.push('/register')"
-          data-v-8cc76a7b=""
-          style="color: rgb(5, 106, 239)"
-          >{{ $t("免費註冊") }}</span
-        >
-      </div>
+      <!-- <div class="register" data-v-8cc76a7b="">
+        {{ $t("還沒賬號?") }}
+        <span @click="$router.push('/register')" data-v-8cc76a7b="" style="color:#c4d600">{{ $t("免費註冊") }}</span>
+      </div> -->
     </div>
   </div>
 </template>
@@ -74,11 +57,11 @@
       userPassword: "",
       userName: "",
       btnClass: false,
-      medium: "medium",
+      medium: "medium"
     };
   },
   components: {
-    headers,
+    headers
   },
   mounted() {
     const ret = window.localStorage.getItem("login_admin");
@@ -111,7 +94,7 @@
     async loginIN() {
       let opts = {
         phone: this.userName,
-        userPwd: this.userPassword,
+        userPwd: this.userPassword
       };
       let data = await api.login(opts);
 
@@ -122,7 +105,7 @@
             "login_admin",
             JSON.stringify({
               phone: this.userName,
-              userPassword: this.userPassword,
+              userPassword: this.userPassword
             })
           );
         } else {
@@ -132,7 +115,7 @@
         this.$store.state.userInfo.token = data.data.token;
         this.undataToken(data.data.token);
         window.localStorage.setItem("USERTOKEN", data.data.token);
-        Notify({ type: "success", message: this.$t("hj36") });
+        // Notify({ type: "success", message: this.$t("hj36") });
 
         setTimeout(() => {
           // this.$router.push("/home");
@@ -145,18 +128,21 @@
         // 支持
         navigator.vibrate([55]);
       }
-    },
+    }
   },
-  beforeDestroy() {},
-  created() {},
+  beforeDestroy() { },
+  created() { }
 };
 </script>
 
 <style scoped lang="less">
+@green: #c4d600;
+
 .password-operate {
   display: flex;
   justify-content: space-between;
   margin-top: 0.53333rem;
+
   .forget {
     font-style: normal;
     font-weight: 400;
@@ -166,9 +152,14 @@
   }
 }
 
+/deep/ .van-checkbox__icon--checked .van-icon {
+  background: @green;
+  border-color: @green;
+}
+
 .register {
   font-style: normal;
-  font-weight: 400;
+  font-weight: 500;
   font-size: 0.37333rem;
   color: #8c9fad;
   margin: 0.4rem auto;
@@ -176,10 +167,12 @@
   width: 100%;
   height: 6rem;
   text-align: center;
+
   span {
     color: rgb(5, 106, 239);
   }
 }
+
 .login_title {
   font-family: "DINPro", serif;
   font-style: normal;
@@ -189,17 +182,20 @@
   color: #14181f;
   margin-left: 0.53333rem;
 }
+
 /deep/ .van-checkbox__label {
   font-style: normal;
-  font-weight: 400;
+  font-weight: 500;
   font-size: 0.37333rem;
   line-height: 0.53333rem;
   color: #8c9fad;
 }
+
 /deep/ .van-button__text {
   font-size: 24px;
   font-family: "DINPro";
 }
+
 .login_page {
   display: flex;
   flex-direction: column;
@@ -237,11 +233,11 @@
       .password {
         width: 100%;
         height: 50px;
-        background: rgb(246, 246, 247);
+        background: #fff;
         // background: #1e1e1e;
         border-radius: 0.3564rem;
 
-        > input {
+        >input {
           width: 100%;
           height: 100%;
           padding-left: 0.3564rem;
@@ -253,29 +249,43 @@
     /deep/.el-input__inner {
       width: 100%;
       height: 70px;
-      background-color: rgb(246, 246, 247) !important;
+      background-color: #fff !important;
       // background: #1e1e1e;
       border-radius: 8px;
       font-size: 0.45rem !important;
-      border: none;
+      border: #ddd solid 1px;
     }
 
     .bottom_btns {
       width: 100%;
       height: 3.3333rem;
+
       // margin-top: 0.8528rem;
       .butn {
         width: 100%;
         margin-top: 40px;
         height: 60px;
         border-radius: 8px;
+        background: @green;
+        border: none;
       }
+
+      .butn_2 {
+        width: 100%;
+        margin-top: 40px;
+        height: 60px;
+        border-radius: 8px;
+        color: @green;
+        border-color: @green;
+        margin-top: .4rem;
+      }
+
       .top_btn {
         border: none;
         width: 100%;
         height: 1.25rem;
         border-radius: 8px;
-        background: #0066ed;
+        background: @green;
         color: #fff;
         display: flex;
         align-items: center;
@@ -283,7 +293,7 @@
         font-size: 0.5128rem;
         margin-top: 0.75rem;
 
-        > span {
+        >span {
           font-weight: 530 !important;
         }
       }
@@ -332,7 +342,7 @@
     align-items: center;
     justify-content: center;
 
-    > span {
+    >span {
       font-size: 0.3046rem;
       color: #000;
       background-color: #fff;
@@ -395,7 +405,7 @@
     width: 3rem;
     height: 3.5769rem;
 
-    > img {
+    >img {
       width: 100%;
       height: 100%;
     }
@@ -423,7 +433,7 @@
 }
 
 .on .top_btn {
-  background: #2d8cf0 !important;
+  background: @green !important;
 }
 
 /deep/.el-icon-circle-close::before {

--
Gitblit v1.9.3