From 37e6ed1a122f6791b77fe8574fa2ff3ad1079b68 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 13 八月 2025 09:18:21 +0800
Subject: [PATCH] feat: 接口对接

---
 apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue |   45 +++++++++++++++++++++++----------------------
 1 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue b/apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue
index b78be59..dd3d986 100644
--- a/apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue
+++ b/apps/bMiniApp/src/subpackages/jobApplicationManage/components/SignList.vue
@@ -1,9 +1,22 @@
 <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="setOSSLink(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">
+            {{ EnumTaskUserHireStatusText[item.hireStatus] }}
+          </div>
         </template>
         <template #footerRight>
           <nut-button type="primary" @click="goToJobDetail(item.id)">鏌ョ湅璇︽儏</nut-button>
@@ -14,12 +27,12 @@
 </template>
 
 <script setup lang="ts">
-import { OrderInputType } from '@12333/constants';
+import { EnumTaskUserHireStatusText } from '@12333/constants';
 import { RouterPath } from '@/constants';
-import { useInfiniteLoading } from '@12333/hooks';
-import * as flexWorkerServices from '@12333/services/api/FlexWorker';
+import { useTaskUserList } from '@12333/hooks';
 import { FlexJobCard } from '@12333/components';
 import Taro from '@tarojs/taro';
+import { setOSSLink } from '@12333/utils';
 
 defineOptions({
   name: 'SignList',
@@ -29,24 +42,12 @@
 
 // const props = withDefaults(defineProps<Props>(), {});
 
-const { infiniteLoadingProps } = useInfiniteLoading(
-  ({ pageParam }) => {
-    let params: API.GetFlexTaskListInput = {
-      pageModel: {
-        rows: 20,
-        page: pageParam,
-        orderInput: [{ property: 'isRecommend', order: OrderInputType.Desc }],
-      },
-    };
+const router = Taro.useRouter();
+const id = router.params?.id ?? '';
 
-    return flexWorkerServices.getFlexTaskByArrange(params, {
-      showLoading: false,
-    });
-  },
-  {
-    queryKey: ['flexWorkerServices/getFlexTaskByArrange'],
-  }
-);
+const { infiniteLoadingProps } = useTaskUserList({
+  id: id,
+});
 
 function goToJobDetail(id: string) {
   Taro.navigateTo({

--
Gitblit v1.9.1