| | |
| | | </checkbox-group> |
| | | 记住密码 |
| | | </label> |
| | | <div class="forgotPassword">忘记密码?</div> |
| | | <div class="forgotPassword" @click="goToForgotPassword">忘记密码?</div> |
| | | </div> |
| | | |
| | | <button class="login-btn" :style="[inputStyle]" @tap="submit">登录</button> |
| | |
| | | import md5 from "js-md5"; |
| | | import { loginByUsername } from "@/api/user/index.js"; |
| | | import { useUserStore } from "@/store/index.js"; |
| | | import websocketService from "@/utils/websocket.js"; |
| | | |
| | | import { HOME_PATH, LOGIN_PATH, removeQueryString } from "@/router"; |
| | | |
| | |
| | | |
| | | function toggleShowPassword() { |
| | | showPassword.value = !showPassword.value; |
| | | } |
| | | |
| | | function goToForgotPassword() { |
| | | uni.navigateTo({ |
| | | url: '/subPackages/userDetail/password/index' |
| | | }); |
| | | } |
| | | |
| | | async function submit() { |
| | |
| | | userInfo.code |
| | | ); |
| | | userStore.setUserInfo(res.data.data); |
| | | console.log('登录成功,WebSocket连接将由全局钩子统一管理'); |
| | | uni.reLaunch({ |
| | | url: "/pages/work/index", |
| | | }); |
| | |
| | | } |
| | | |
| | | .title { |
| | | font-family: YouSheBiaoTiHei, YouSheBiaoTiHei; |
| | | font-family: "PangMen"; |
| | | font-weight: 400; |
| | | font-size: 52rpx; |
| | | line-height: 82rpx; |
| | | letter-spacing: 1px; |
| | | text-shadow: 0px 8px 8px rgba(0, 0, 0, 0.18); |
| | | text-shadow: 0px 8rpx 8rpx rgba(0, 0, 0, 0.18); |
| | | text-align: center; |
| | | font-style: normal; |
| | | text-transform: none; |