吉安感知网项目-前端
chenyao
2026-01-15 d086ea096dbc2e5bc29a20a9e9280f5ccc5868b7
uniapps/work-wx/src/pages/login/index.vue
@@ -9,24 +9,25 @@
        <input v-model="loginForm.username" placeholder="请输入用户名" />
      </div>
      <div class="pass-word">
        <input v-model="loginForm.password" :type="isShowPassword ? 'text' : 'password'" placeholder="请输入密码"/>
        <u-input type="password" border="bottom" v-model="loginForm.password" placeholder="请输入密码"></u-input>
        <!-- <input v-model="loginForm.password" :type="isShowPassword ? 'text' : 'password'" placeholder="请输入密码"/>
        <image v-if="!isShowPassword" :src="showPasswordSvg" @click="isShowPassword = !isShowPassword" />
        <image v-else :src="showPsdSvg"  @click="isShowPassword = !isShowPassword" />
        <image v-else :src="showPsdSvg"  @click="isShowPassword = !isShowPassword" /> -->
      </div>
    </view>
    <div class="remember-password">
      <view class="remember">
        <checkbox-group @change="toggleRemember">
        <!-- <checkbox-group @change="toggleRemember">
          <checkbox
            :checked="rememberPassword"
            color="#1D6FE9"
            style="transform: scale(0.7)"
          />
        </checkbox-group>
        记住密码
        记住密码 -->
      </view>
      <view class="forget">
        忘记密码
      <view class="forget" @click="forgetClick">
        忘记密码?
      </view>
    </div>
    <button class="login-btn" :style="[inputStyle]" @tap="submit">登录</button>
@@ -43,10 +44,8 @@
import { HOME_PATH, LOGIN_PATH, removeQueryString } from "@/router";
import { ref } from "vue";
import logoSvg from "@/static/images/logo.svg";
import droneLogSvg from "@/static/images/user/droneLogo.svg";
import showPsdSvg from "@/static/images/user/showPsd.svg";
import showPasswordSvg from "@/static/images/show-password.svg";
import logoSvg from "@/static/images/logo.png";
import droneLogSvg from "@/static/images/user/droneLogo.png";
const droneSvg = getAssetsImage("/images/login/droneSvg.svg");
const usernameSvg = getAssetsImage("/images/login/username.svg");
@@ -151,6 +150,12 @@
  });
}
function forgetClick() {
  uni.navigateTo({
    url: "/subPackages/userDetail/password/index",
  });
}
// 从本地存储加载记住的密码
onMounted(() => {
  const savedUserInfo = uni.getStorageSync("rememberedUser");
@@ -176,8 +181,8 @@
  width: 100%;
  .logo {
    width: 127px;
    height: 51px;
    width: 67px;
    height: 67px;
    margin: 0 auto;
    margin-top: 162px;
    margin-bottom: 16px;