| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { |
| | | useUserStore |
| | | } from "@/store/index.js"; |
| | | import md5 from "js-md5"; |
| | | import { |
| | | getUserInfo, |
| | | updateInfo, |
| | | updatePassword |
| | | } from '@/api/user/index.js'; |
| | | import { |
| | | useUserStore |
| | | } from "@/store/index.js"; |
| | | |
| | | const userStore = useUserStore(); |
| | | const passwordForm = ref({ |
| | | oldPassword: '', |
| | |
| | | }; |
| | | }; |
| | | const reset = () => { |
| | | // passwordForm.value = { |
| | | // id: userStore.userInfo.user_id, |
| | | // oldPassword: '', |
| | | // newPassword: '', |
| | | // newPassword1: '', |
| | | // }; |
| | | clearForm(); |
| | | }; |
| | | const submit = () => { |
| | |
| | | duration: 2000 |
| | | }); |
| | | clearForm(); |
| | | userStore.setUserInfo(null) |
| | | uni.redirectTo({ |
| | | url: '/pages/login/index' |
| | | }) |
| | | |
| | | } else { |
| | | uni.showToast({ |
| | |
| | | |
| | | .btngroup { |
| | | display: flex; |
| | | margin-top: 120px; |
| | | position: absolute; |
| | | bottom:75px; |
| | | } |
| | | |
| | | .u-button:first-child{ |
| | | margin-right: 15px; |
| | | } |