| | |
| | | :contactPhoneNumber="userResumeInfo.contactPhoneNumber" |
| | | :identity="userResumeInfo.identity" |
| | | :isCollapse="isCollapse" |
| | | :userId="userId" |
| | | :userId="enterpriseEmployeeId" |
| | | :userExpectJobs="userResumeInfo.userExpectJobs" |
| | | :freeTime="userResumeInfo.freeTime" |
| | | :jobSeekingStatus="userResumeInfo.jobSeekingStatus" |
| | | :userCredentials="userResumeInfo.userCredentials" |
| | | :workSeniority="userResumeInfo.workSeniority" |
| | | :workExperience="userResumeInfo.workExperience" |
| | | :photos="userResumeInfo.photos" |
| | | :height="userResumeInfo.height" |
| | | :weight="userResumeInfo.weight" |
| | | :taskInfoUsers="userResumeInfo.taskInfoUsers" |
| | | > |
| | | <template #footer> |
| | | <PageFooterAction |
| | |
| | | openType="share" |
| | | ></PageFooterAction> |
| | | <PageFooterAction |
| | | :icon="IconAttentionActive" |
| | | :icon="userResumeInfo.isCollected ? IconAttentionActive : IconAttention" |
| | | text="收藏" |
| | | :isFlex="false" |
| | | @click="handleAttention" |
| | |
| | | }); |
| | | |
| | | const router = Taro.useRouter(); |
| | | const userId = router.params?.id ?? ''; |
| | | const enterpriseEmployeeId = router.params?.enterpriseEmployeeId ?? ''; |
| | | |
| | | const { isLoading, isError, userResumeInfo, refetch } = useUserResume({ |
| | | userId, |
| | | userId: enterpriseEmployeeId, |
| | | }); |
| | | |
| | | const { isCollapse, toggle } = useToggle(); |
| | |
| | | const handleContact = useAccessLogin(async () => { |
| | | try { |
| | | if (!isCollapse.value) { |
| | | await userResumeServices.contactUserResume({ id: userId }); |
| | | await userResumeServices.contactUserResume({ id: enterpriseEmployeeId }); |
| | | toggle(); |
| | | } |
| | | } catch (error) {} |
| | |
| | | async function handleAttention() { |
| | | try { |
| | | let params: API.CollectUserResumeCommand = { |
| | | id: userId, |
| | | // isCollected: userResumeInfo.value.i, |
| | | id: enterpriseEmployeeId, |
| | | isCollected: !userResumeInfo.value.isCollected, |
| | | }; |
| | | let res = await userResumeServices.collectUserResume(params); |
| | | if (res) { |
| | | Message.success('收藏成功'); |
| | | refetch({ type: 'inactive' }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | @import '@/styles/common.scss'; |
| | | </style> |