zzzz
2024-03-26 0df61bbe45cd6adf9de18074b5e978673247be85
src/page/login/login.vue
@@ -27,7 +27,7 @@
          >
          </el-input>
          <el-input
            style="margin-top: 0.46rem;"
            style="margin-top: 0.46rem"
            show-password
            :placeholder="$t('hj10')"
            :size="medium"
@@ -38,19 +38,26 @@
        </div>
        <div class="bottom_btns" :class="btnClass ? 'on' : 'off'">
          <button
            class="top_btn "
            v-on:touchstart="loginIN"
            class="top_btn"
            @click="loginIN"
            :class="dengl ? 'animated pulse' : ''"
          >
            <span>{{ $t("hj11") }}</span>
          </button>
          <div style="display:flex;align-items:center;justify-content: space-between;">
          <div
            style="
              display: flex;
              align-items: center;
              justify-content: space-between;
            "
          >
            <div class="myzh">
              <span class="mes" style="margin: right 0.2rem;">{{ $t("hj14") }}?</span
              <span class="mes" style="margin: right 0.2rem"
                >{{ $t("hj14") }}?</span
              ><span
                @click="$router.push('/register')"
                class="mes"
                style="color: rgb(54,124,248);"
                style="color: rgb(54, 124, 248)"
                >{{ $t("hj15") }}</span
              >
            </div>
@@ -110,11 +117,11 @@
      loginBtn: false,
      docmHeight: document.documentElement.clientHeight, //默认屏幕高度
      showHeight: document.documentElement.clientHeight, //实时屏幕高度
      hideshow: true //显示或者隐藏footer
      hideshow: true, //显示或者隐藏footer
    };
  },
  components: {
    headers
    headers,
  },
  mounted() {
    window.onresize = () => {
@@ -124,13 +131,13 @@
    };
  },
  watch: {
    showHeight: function() {
    showHeight: function () {
      if (this.docmHeight > this.showHeight) {
        this.hideshow = false;
      } else {
        this.hideshow = true;
      }
    }
    },
  },
  methods: {
    getApp() {
@@ -155,19 +162,19 @@
      setTimeout(() => {
        this.dengl = false;
      }, 1000);
      console.log(this.loginBtn);
      if (this.loginBtn) {
        return;
      }
      this.loginBtn = true;
      let opts = {
        phone: this.userName,
        userPwd: this.userPassword
        userPwd: this.userPassword,
      };
      let data = await api.login(opts);
      console.log("data.status",data.status);
      console.log("data.status", data.status);
      if (data.status === 0) {
        this.$store.state.userInfo.phone = this.userName;
        this.$store.state.userInfo.token = data.data.token;
@@ -195,10 +202,10 @@
        // 支持
        navigator.vibrate([55]);
      }
    }
    },
  },
  beforeDestroy() {},
  created() {}
  created() {},
};
</script>
@@ -277,7 +284,7 @@
      margin-top: 0.8528rem;
      .top_btn {
      border: none;
        border: none;
        width: 100%;
        height: 1.25rem;
        border-radius: 0.3564rem;