From ac7fde69c457b3488bbfe2671dbfeb3eeba26414 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 13 八月 2025 10:15:20 +0800 Subject: [PATCH] fix: 灵工管理 --- apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue | 57 ++++++++++++++++++++++++++++++++++----------------------- 1 files changed, 34 insertions(+), 23 deletions(-) diff --git a/apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue b/apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue index 75f5381..83dc2d5 100644 --- a/apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue +++ b/apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue @@ -1,12 +1,28 @@ <template> <InfiniteLoading scrollViewClassName="common-infinite-scroll-list" v-bind="infiniteLoadingProps"> <template #renderItem="{ item }"> - <FlexJobCard> + <FlexJobCard + :name="item.name" + :age="item.age" + :gender="item.gender" + :avatar="item.avatar" + :isReal="item.isReal" + :personalIdentityContent="item.personalIdentityContent" + :educationalBackgroundContent="item.educationalBackgroundContent" + :taskCount="item.taskCount" + :workSeniority="item.workSeniority" + :workExperience="item.workExperience" + > <template #footerLeft> - <div class="flexJob-card-footer-text">宸插綍鐢�</div> + <div + class="flexJob-card-footer-text" + :style="{ color: EnumTaskUserHireStatusColor[item.hireStatus] }" + > + {{ EnumTaskUserHireStatusText[item.hireStatus] }} + </div> </template> <template #footerRight> - <nut-button type="primary">鏌ョ湅璇︽儏</nut-button> + <nut-button type="primary" @click="goToJobDetail(item.id)">鏌ョ湅璇︽儏</nut-button> </template> </FlexJobCard> </template> @@ -14,10 +30,11 @@ </template> <script setup lang="ts"> -import { OrderInputType } from '@12333/constants'; -import { useInfiniteLoading } from '@12333/hooks'; -import * as orderServices from '@12333/services/api/Order'; +import { EnumTaskUserHireStatusText, EnumTaskUserHireStatusColor } from '@12333/constants'; +import { RouterPath } from '@/constants'; +import { useTaskUserList } from '@12333/hooks'; import { FlexJobCard } from '@12333/components'; +import Taro from '@tarojs/taro'; defineOptions({ name: 'SignList', @@ -27,24 +44,18 @@ // const props = withDefaults(defineProps<Props>(), {}); -const { infiniteLoadingProps } = useInfiniteLoading( - ({ pageParam }) => { - let params: API.FrontOrderListInput = { - pageModel: { - rows: 20, - page: pageParam, - orderInput: [{ property: 'isRecommend', order: OrderInputType.Desc }], - }, - }; +const router = Taro.useRouter(); +const id = router.params?.id ?? ''; - return orderServices.getFrontOrderList(params, { - showLoading: false, - }); - }, - { - queryKey: ['orderServices/getFrontOrderList'], - } -); +const { infiniteLoadingProps } = useTaskUserList({ + id: id, +}); + +function goToJobDetail(id: string) { + Taro.navigateTo({ + url: `${RouterPath.flexJobDetailFromTask}?id=${id}`, + }); +} </script> <style lang="scss"> -- Gitblit v1.9.1