From f6d29d197b5e942514d2dd826c121db685c41763 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 22 十月 2025 17:02:21 +0800
Subject: [PATCH] fix: bug

---
 apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue |   52 ++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 38 insertions(+), 14 deletions(-)

diff --git a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue
index 96d7728..2a2eb2a 100644
--- a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue
+++ b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue
@@ -37,6 +37,7 @@
             </div> -->
           </div>
           <TaskPrice
+            v-if="detail.releaseStatus !== EnumTaskReleaseStatus.Stopped"
             :value="toThousand(detail.serviceFee ?? 0)"
             :unit="BillingMethodEnumUnit[detail.billingMethod]"
           />
@@ -92,8 +93,17 @@
             @click="goCompanyDetail"
             :enterpriseName="detail?.enterpriseName ?? ''"
             :taskCount="detail?.taskCount ?? 0"
+            :isReal="detail?.isReal ?? false"
           ></CompanyDesc>
         </CellChunk>
+      </Cell>
+      <Cell>
+        <template #title>
+          <div class="safe-cell-title-wrapper">
+            <div class="safe-cell-title">浠诲姟鎻忚堪</div>
+          </div>
+        </template>
+        <div class="safe-cell-content">{{ detail?.description ?? '' }}</div>
       </Cell>
       <Cell>
         <template #title>
@@ -122,7 +132,7 @@
         @click="handleCall"
       ></PageFooterAction>
       <PageFooterBtn
-        v-if="from === 'sign'"
+        v-if="from === 'sign' && !!detail?.applyButton"
         type="primary"
         :disabled="detail?.applyButton === GetTaskInfoQueryResultApplyButton.WaitHire"
         @click="handleSign"
@@ -130,7 +140,13 @@
         {{ GetTaskInfoQueryResultApplyButtonText[detail.applyButton] }}
       </PageFooterBtn>
       <PageFooterBtn
-        v-if="from === 'hire'"
+        v-if="
+          from === 'hire' &&
+          !(
+            detail?.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn &&
+            detail?.hireButton === GetTaskInfoQueryResultHireButton.ApplyCheckReceive
+          )
+        "
         type="primary"
         :disabled="detail?.hireButton !== GetTaskInfoQueryResultHireButton.ApplyCheckReceive"
         @click="handleHire"
@@ -183,6 +199,7 @@
   GetTaskInfoQueryResultHireButtonText,
   GetTaskInfoQueryResultHireButton,
   GetTaskInfoQueryResultApplyButton,
+  EnumTaskCheckReceiveMethod,
 } from '@12333/constants';
 import { useAccessLogin } from '@/hooks';
 
@@ -235,18 +252,21 @@
   }
 });
 
-const handleApply = useAccessLogin(async () => {
-  try {
-    let params: API.ApplyTaskCommand = {
-      ids: [id],
-    };
-    let res = await taskUserServices.applyTask(params);
-    if (res) {
-      Message.success('鎶ュ悕鎴愬姛');
-      refetch({ type: 'inactive' });
-    }
-  } catch (error) {}
-});
+const handleApply = useAccessReal(
+  async () => {
+    try {
+      let params: API.ApplyTaskCommand = {
+        ids: [id],
+      };
+      let res = await taskUserServices.applyTask(params);
+      if (res) {
+        Message.success('鎶ュ悕鎴愬姛');
+        refetch({ type: 'inactive' });
+      }
+    } catch (error) {}
+  },
+  { message: '瀹炲悕鎴愬姛鍚庢墠鍙姤鍚嶏紝璇峰墠寰�瀹炲悕璁よ瘉' }
+);
 
 const handleAttention = useAccessLogin(async () => {
   try {
@@ -295,4 +315,8 @@
     scale: 18,
   });
 }
+
+Taro.useDidShow(() => {
+  refetch();
+});
 </script>

--
Gitblit v1.9.1