| | |
| | | import Taro from '@tarojs/taro'; |
| | | import { object2query, LocationUtils } from '@12333/utils'; |
| | | import { ParkOrHRStatus, UserCertificationFrontStatus } from '@12333/constants'; |
| | | import * as userServices from '@12333/services/api/User'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import { useQuery, useQueryClient } from '@tanstack/vue-query'; |
| | | import { MaybeRef } from 'vue'; |
| | | import { useRefeshDidShow } from '@12333/hooks/infiniteLoading'; |
| | | import * as userResumeServices from '@12333/services/apiV2/userResume'; |
| | | import { useUserResume as useUserResumeHook } from '@12333/hooks'; |
| | | |
| | | export function useUser() { |
| | | const userStore = useUserStore(); |
| | | |
| | | const { userDetail, userInfo, locationCity } = storeToRefs(userStore); |
| | | const { userDetail, userInfo, locationCity, userId } = storeToRefs(userStore); |
| | | |
| | | function updateUserInfo() { |
| | | return userStore.getCurrentUserInfo(); |
| | |
| | | }); |
| | | |
| | | const isCertified = computed(() => { |
| | | return userDetail.value?.frontStatus === UserCertificationFrontStatus.Certified; |
| | | return false; |
| | | }); |
| | | |
| | | return { |
| | |
| | | isCompanyAudited, |
| | | isCertified, |
| | | locationCity, |
| | | userId, |
| | | }; |
| | | } |
| | | |
| | |
| | | goLoginFn, |
| | | }; |
| | | } |
| | | |
| | | export function useUserResume() { |
| | | const { userId } = useUser(); |
| | | return useUserResumeHook({ userId }); |
| | | } |