1
PC-20250623MANY\Administrator
2025-08-13 79db9782438e27a9006d540d18d649c720180a31
src/page/login/login.vue
@@ -1,6 +1,5 @@
<template>
  <div class="login_page">
    <!-- <headers /> -->
    <tab-head :leftShow="false" :rightShow="false">
      <van-popover
        v-model="languageShow"
@@ -11,13 +10,15 @@
      >
        <template #reference>
          <div class="multilingual">
            <img src="../../assets/img/language.svg" alt="" />
            <img src="../../assets/img/language_b.png" alt="" />
          </div>
        </template>
      </van-popover>
    </tab-head>
    <img src="../../assets/img/logo.png" alt="" class="logo" />
      <template #left>
        <img src="@/assets/img/logo_1.png" class="left_icon" />
      </template>
    </tab-head>
    <div class="login_title animated slideInDown">
      <span>{{ $t("dlan") }}</span>
@@ -52,36 +53,30 @@
          >
            {{ $t("立即登录") }}
          </van-button>
          <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") }}
          </van-button> -->
        </div>
        <div class="login_footer">
          <div class="tui-first">
            <div @click="$router.push('/register')">{{ $t("立即注册") }}</div>
            <div class="symbol"></div>
            <div @click="$store.dispatch('CustomerService')">
              {{ $t("kf") }}
            </div>
            <div class="remember" data-v-8cc76a7b="">
              <van-checkbox @change="checkboxChange" v-model="checked">{{
                $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:#c4d600">{{ $t("免費註冊") }}</span>
      </div> -->
    </div>
  </div>
</template>
<script>
// import headers from "./components/header.vue";
import tabHead from "../../components/tabHead.vue";
import * as api from "@/axios/api";
import { Notify } from "vant";
@@ -177,7 +172,7 @@
        setTimeout(() => {
          // this.$router.push("/home");
          this.$router.push("/home_index");
          this.$router.push("/");
        }, 1000);
      } else {
        Notify({ type: "warning", message: data.msg });
@@ -200,6 +195,28 @@
<style scoped lang="less">
@green: #c4d600;
@Black1: #13161e;
.login_footer {
  margin-top: 3rem;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  .tui-first {
    display: flex;
    align-items: center;
    color: #0e7ddd;
    font-size: 0.4rem;
  }
  .symbol {
    background-color: #ccc;
    width: 1px;
    height: 0.275rem;
    margin: 0 0.225rem;
  }
}
.password-operate {
  display: flex;
@@ -242,8 +259,7 @@
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 0.66667rem;
  color: #14181f;
  text-align: center;
  padding: 0.6rem 0.6rem 0;
}
/deep/ .van-checkbox__label {
@@ -263,6 +279,11 @@
  display: flex;
  flex-direction: column;
  height: 100vh;
  .left_icon {
    width: 112px;
    height: 32px;
  }
  .multilingual {
    width: 0.8em;
@@ -288,15 +309,13 @@
  width: 100%;
  height: 9.7436rem;
  margin-top: 0.4359rem;
  background: #fff;
  // padding: 0 0.4564rem;
  .login_forms {
    width: 100%;
    border-top-left-radius: 0.26667rem;
    border-top-right-radius: 0.26667rem;
    padding: 0.34667rem 0.4rem;
    padding: 0.2rem 0.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
@@ -309,9 +328,11 @@
      flex-wrap: wrap;
      .forms_title {
        font-size: 0.4rem;
        font-size: 0.3rem;
        margin-top: 0.5rem;
        margin-bottom: 0.2rem;
        font-weight: 300;
        opacity: 0.7;
      }
      .user_name,
@@ -319,7 +340,6 @@
        width: 100%;
        height: 50px;
        background: #fff;
        // background: #1e1e1e;
        border-radius: 0.3564rem;
        > input {
@@ -334,11 +354,11 @@
    /deep/.el-input__inner {
      width: 100%;
      height: 70px;
      background-color: #fff !important;
      // background: #1e1e1e;
      border-radius: 8px;
      font-size: 0.45rem !important;
      border: #ddd solid 1px;
      background-color: @Black1 !important;
      font-size: 0.3rem !important;
      border: @Black1 solid 1px;
      color: #fff;
      border-bottom: rgba(#fff, 0.7) solid 1px;
    }
    .bottom_btns {
@@ -351,7 +371,7 @@
        margin-top: 40px;
        height: 60px;
        border-radius: 8px;
        background: @green;
        background: #1f4583;
        border: none;
      }