吉安感知网项目-前端
张含笑
2026-01-12 bab1b2feb56d2ecb0eb2ec3e56524e3227ef9d55
feat:app更新
1 files modified
21 ■■■■■ changed files
uniapps/work-app/src/pages/login/index.vue 21 ●●●●● patch | view | raw | blame | history
uniapps/work-app/src/pages/login/index.vue
@@ -11,10 +11,10 @@
    <div class="pass-word">
      <input
        v-model="loginForm.password"
        type="password"
        :type="showPassword ? 'text' : 'password'"
        placeholder="请输入密码"
      />
      <image :src="showPasswordSvg" />
      <image :src="showPassword ? openPassword : showPasswordSvg" @click="toggleShowPassword" class="password-toggle-icon" />
    </div>
    <div class="remember-password">
      <label>
@@ -47,15 +47,10 @@
import { useUserStore } from "@/store/index.js";
import { HOME_PATH, LOGIN_PATH, removeQueryString } from "@/router";
import { ref } from "vue";
import logoSvg from "@/static/images/logo.svg";
import showPasswordSvg from "@/static/images/show-password.svg";
const droneSvg = getAssetsImage("/images/login/droneSvg.svg");
const usernameSvg = getAssetsImage("/images/login/username.svg");
const passwordSvg = getAssetsImage("/images/login/password.svg");
// const logoSvg = getAssetsImage("/images/login/logo.svg");
import openPassword from "@/static/images/openPassword.svg";
const agreed = ref(true);
@@ -65,6 +60,7 @@
  password: "",
});
const rememberPassword = ref(false);
const showPassword = ref(false);
const inputStyle = computed(() => {
  const style = {};
  if (loginForm.value.username && loginForm.value.password) {
@@ -76,6 +72,10 @@
let redirect = HOME_PATH;
function toggleRemember(e) {
  rememberPassword.value = e.detail.value.length > 0;
}
function toggleShowPassword() {
  showPassword.value = !showPassword.value;
}
async function submit() {
@@ -213,6 +213,11 @@
.user-name{
  margin-bottom: 40rpx;
}
  .pass-word{
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  .user-name,
  .pass-word {
    display: flex;