| | |
| | | getClipboardData |
| | | } = useClipboard(); |
| | | const userStore = useUserStore(); |
| | | // console.log('userStore', userStore.userInfo); |
| | | console.log('userStore', userStore.userInfo); |
| | | |
| | | // 复制 |
| | | const toCopy = async () => { |
| | |
| | | // 登录鉴权,微信小程序端点击tabbar的底层逻辑不触发uni.switchTab,需要在页面onShow生命周期中校验权限 |
| | | onShow(async () => { |
| | | getDeviceRegion() |
| | | |
| | | uni.setTabBarItem({ |
| | | index: 2, // Tab 的索引(从0开始) |
| | | visible: false, |
| | | }) |
| | | uni.setTabBarItem({ |
| | | index: 3, // Tab |
| | | visible: true, |
| | | }); |
| | | }); |
| | | </script> |
| | | <style scoped lang="scss"> |
| | |
| | | } |
| | | |
| | | .userName { |
| | | font-family: Source Han Sans CN, Source Han Sans CN; |
| | | font-family: "Source Han Sans CN"; |
| | | font-weight: 500; |
| | | font-size: 18px; |
| | | color: #000000; |
| | |
| | | margin-top: 11px; |
| | | |
| | | span { |
| | | font-family: Source Han Sans CN, Source Han Sans CN; |
| | | font-family: "Source Han Sans CN"; |
| | | font-weight: 400; |
| | | font-size: 14px; |
| | | color: rgba(0, 0, 0, 0.6); |
| | |
| | | height: 38px; |
| | | background: #1D6FE9; |
| | | border-radius: 20px 20px 20px 20px; |
| | | font-family: Source Han Sans CN, Source Han Sans CN; |
| | | font-family: "Source Han Sans CN"; |
| | | font-weight: 400; |
| | | font-size: 14px; |
| | | color: #FFFFFF; |
| | |
| | | height: 80px; |
| | | .messagebox{ |
| | | padding: 10px 12px; |
| | | font-family: Source Han Sans CN, Source Han Sans CN; |
| | | font-family: "Source Han Sans CN"; |
| | | font-weight: 500; |
| | | font-size: 14px; |
| | | color: #000000; |
| | |
| | | .editInfo { |
| | | padding: 10px 12px; |
| | | color: rgba(0, 0, 0, 0.5); |
| | | font-family: Source Han Sans CN, Source Han Sans CN; |
| | | font-family: "Source Han Sans CN"; |
| | | font-weight: 400; |
| | | font-size: 12px; |
| | | display: flex; |
| | |
| | | |
| | | .btngroup { |
| | | display: flex; |
| | | margin-top: 120px; |
| | | position: absolute; |
| | | bottom:75px; |
| | | } |
| | | .u-button:first-child{ |
| | | margin-right: 15px; |
| | |
| | | </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: '', |
| | |
| | | newPassword1: '', |
| | | }); |
| | | const clearForm = () => { |
| | | passwordForm.value = { |
| | | oldPassword: '', |
| | | newPassword: '', |
| | | newPassword1: '', |
| | | }; |
| | | passwordForm.value = { |
| | | oldPassword: '', |
| | | newPassword: '', |
| | | newPassword1: '', |
| | | }; |
| | | }; |
| | | 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({ |
| | |
| | | |
| | | }; |
| | | onShow(async () => { |
| | | clearForm(); |
| | | clearForm(); |
| | | }); |
| | | </script> |
| | | |
| | |
| | | .container { |
| | | |
| | | width: 100%; |
| | | |
| | | |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | |
| | | background-size: cover; |
| | | |
| | | background-attachment: fixed; |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | .btngroup { |
| | | display: flex; |
| | | margin-top: 120px; |
| | | position: absolute; |
| | | bottom:75px; |
| | | } |
| | | .u-button:first-child{ |
| | | |
| | | .u-button:first-child { |
| | | margin-right: 15px; |
| | | } |
| | | |
| | | |
| | | .custom-style { |
| | | width: 138px; |
| | | height: 38px; |