From e3ae5da789eb35217a4a377cab0ff3241ceaf72a Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 11 八月 2025 13:42:07 +0800 Subject: [PATCH] feat: 接口对接 --- apps/cMiniApp/src/subpackages/curriculum/mineCurriculumVitae/InnerPage.vue | 35 +++++++++++++++-------------------- 1 files changed, 15 insertions(+), 20 deletions(-) diff --git a/apps/cMiniApp/src/subpackages/curriculum/mineCurriculumVitae/InnerPage.vue b/apps/cMiniApp/src/subpackages/curriculum/mineCurriculumVitae/InnerPage.vue index 4526023..6faed82 100644 --- a/apps/cMiniApp/src/subpackages/curriculum/mineCurriculumVitae/InnerPage.vue +++ b/apps/cMiniApp/src/subpackages/curriculum/mineCurriculumVitae/InnerPage.vue @@ -1,7 +1,7 @@ <template> <ContentView> <nut-noticebar - text="涓汉绠�鍘嗗凡瀹屽杽50%锛屽畬鍠勭畝鍘嗗彲鎻愬崌褰曠敤鐜�" + :text="`涓汉绠�鍘嗗凡瀹屽杽${detail?.completeRate ?? 0}锛屽畬鍠勭畝鍘嗗彲鎻愬崌褰曠敤鐜嘸" :left-icon="false" background="transparent" close-mode @@ -35,14 +35,18 @@ <div class="mine-curriculum-info-item-left"> <img :src="IconPhone" class="mine-curriculum-info-item-phone-icon" /> <div class="mine-curriculum-info-item-phone"> - {{ detail?.phoneNumber ?? '' }} + {{ detail?.contactPhoneNumber ?? '' }} </div> </div> <div class="mine-curriculum-info-item-detail"> {{ - `${detail?.age ?? ''}宀� | ${detail?.personalIdentityContent} | ${ - detail?.educationalBackgroundContent - }` + `${detail?.age ? `${detail?.age}宀乣 : ''} + ${detail?.personalIdentityContent ? `| ${detail?.personalIdentityContent}` : ''} + ${ + detail?.educationalBackgroundContent + ? `| ${detail?.educationalBackgroundContent}` + : '' + }` }} </div> </div> @@ -103,7 +107,6 @@ <script setup lang="ts"> import { useUserStore } from '@/stores/modules/user'; -import { useIsLogin } from '@/hooks'; import MineAgreementSignDetailItem from '../../mine/mineAgreementSignDetail/MineAgreementSignDetailItem.vue'; import { List, ListItem, JobTagList, Avatar } from '@12333/components'; import { @@ -121,19 +124,13 @@ import Taro from '@tarojs/taro'; import { useQuery } from '@tanstack/vue-query'; import { setOSSLink } from '@12333/utils'; -import { useEvent, useEventChannel } from 'senin-mini/hooks'; +import { useEvent } from 'senin-mini/hooks'; defineOptions({ name: 'InnerPage', }); -const { userDetail } = useUserStore(); -const isLogin = useIsLogin(); -const router = Taro.useRouter(); - -const usrId = computed(() => userDetail?.userId ?? ''); - -const eventChannel = useEventChannel(); +const { userId } = useUser(); useEvent('updateResume', function (data: { content: boolean }) { if (data.content) { @@ -143,9 +140,7 @@ } }); -const jobTag = computed( - () => detail?.value?.userExpectJobs?.map((x) => x.personalIdentityContent) ?? [] -); +const jobTag = computed(() => detail?.value?.userExpectJobs?.map((x) => x.expectJobContent) ?? []); const { isLoading, @@ -153,17 +148,17 @@ data: detail, refetch, } = useQuery({ - queryKey: ['userResumeServices/getUserResume', usrId], + queryKey: ['userResumeServices/getUserResume', userId], queryFn: async () => { return await userResumeServices.getUserResume( - { userId: usrId.value }, + { userId: userId.value }, { showLoading: false, } ); }, placeholderData: () => ({} as API.GetUserResumeQueryResult), - enabled: !!usrId.value, + enabled: computed(() => !!userId.value), }); function goPage(routeName: string) { -- Gitblit v1.9.1