| | |
| | | <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> |
| | |
| | | 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"); |
| | |
| | | }); |
| | | } |
| | | |
| | | function forgetClick() { |
| | | uni.navigateTo({ |
| | | url: "/subPackages/userDetail/password/index", |
| | | }); |
| | | } |
| | | |
| | | // 从本地存储加载记住的密码 |
| | | onMounted(() => { |
| | | const savedUserInfo = uni.getStorageSync("rememberedUser"); |
| | |
| | | width: 100%; |
| | | |
| | | .logo { |
| | | width: 127px; |
| | | height: 51px; |
| | | width: 67px; |
| | | height: 67px; |
| | | margin: 0 auto; |
| | | margin-top: 162px; |
| | | margin-bottom: 16px; |