From 18f571786729ff46a667760a569436593c59f899 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 14 八月 2025 09:10:30 +0800
Subject: [PATCH] feat: 接口对接

---
 apps/bMiniApp/src/subpackages/task/components/TaskCheckCard.vue |   46 +++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 39 insertions(+), 7 deletions(-)

diff --git a/apps/bMiniApp/src/subpackages/task/components/TaskCheckCard.vue b/apps/bMiniApp/src/subpackages/task/components/TaskCheckCard.vue
index db091ef..9d89fd7 100644
--- a/apps/bMiniApp/src/subpackages/task/components/TaskCheckCard.vue
+++ b/apps/bMiniApp/src/subpackages/task/components/TaskCheckCard.vue
@@ -1,9 +1,24 @@
 <template>
-  <div class="task-check-card-wrapper">
-    <TaskCheckPersonalView class="task-check-card-view">
+  <div class="task-check-card-wrapper" @click.stop="emit('taskChecked')">
+    <TaskCheckPersonalView
+      class="task-check-card-view"
+      :avatar="avatar"
+      :name="name"
+      :gender="gender"
+      :isReal="isReal"
+      :contactPhoneNumber="contactPhoneNumber"
+    >
       <template #actions>
-        <nut-button type="primary" class="task-check-card-phone-btn">楠屾敹</nut-button>
-        <!-- <div class="task-check-card-phone-status" :style="{ color: Colors.Success }">楠屾敹閫氳繃</div> -->
+        <nut-button
+          v-if="checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitCheckReceive"
+          type="primary"
+          class="task-check-card-phone-btn"
+          @click.stop="emit('checkReceive')"
+          >楠屾敹</nut-button
+        >
+        <div v-else class="task-check-card-phone-status" :style="{ color: Colors.Success }">
+          {{ EnumTaskCheckReceiveStatusText[checkReceiveStatus] }}
+        </div>
       </template>
     </TaskCheckPersonalView>
   </div>
@@ -11,15 +26,32 @@
 
 <script setup lang="ts">
 import TaskCheckPersonalView from './TaskCheckPersonalView.vue';
-import { Colors } from '@12333/constants';
+import {
+  Colors,
+  EnumUserGender,
+  EnumTaskCheckReceiveStatus,
+  EnumTaskCheckReceiveStatusText,
+} from '@12333/constants';
 
 defineOptions({
   name: 'TaskCheckCard',
 });
 
-// type Props = {};
+type Props = {
+  avatar?: string;
+  name?: string;
+  gender?: EnumUserGender;
+  isReal?: boolean;
+  contactPhoneNumber?: string;
+  checkReceiveStatus?: EnumTaskCheckReceiveStatus;
+};
 
-// const props = withDefaults(defineProps<Props>(), {});
+const props = withDefaults(defineProps<Props>(), {});
+
+const emit = defineEmits<{
+  (e: 'checkReceive'): void;
+  (e: 'taskChecked'): void;
+}>();
 </script>
 
 <style lang="scss">

--
Gitblit v1.9.1