| | |
| | | import { useSystemStore } from '@/stores/modules/system'; |
| | | import PageLayoutWithBg from '@/components/Layout/PageLayoutWithBg.vue'; |
| | | import { toThousand } from '@12333/utils'; |
| | | import { useIntervalFn } from 'senin-mini/hooks'; |
| | | |
| | | const { userDetail, isCertified, updateUserInfo } = useUser(); |
| | | const isLogin = useIsLogin(); |
| | | const systemStore = useSystemStore(); |
| | | |
| | | const { stop, start } = useIntervalFn(updateUserInfo, 1000); |
| | | const { goLoginFn } = useGoLogin(); |
| | | const bgHeight = computed(() => 133 + systemStore.navHeight); |
| | | |
| | |
| | | setTimeout(() => { |
| | | updateUserInfo(); |
| | | }, 300); |
| | | if (userDetail.value?.realStatus === EnumPersonalUserRealStatus.Checking) { |
| | | start(); |
| | | } else { |
| | | stop(); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | Taro.useDidHide(() => { |
| | | stop(); |
| | | }); |
| | | |
| | | function goLogin() { |
| | | if (!isLogin.value) { |
| | | goLoginFn(); |