From c2463c02a17f92df55ec77ed2da3fb724290c072 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 20 十月 2025 17:34:30 +0800
Subject: [PATCH] fix: bug
---
apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue | 38 +++++++++++++++++++++++++-------------
1 files changed, 25 insertions(+), 13 deletions(-)
diff --git a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue
index 683b95e..f8240b9 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]"
/>
@@ -99,6 +100,14 @@
<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>
+ <div class="safe-cell-title-wrapper">
<img :src="IconSafe" class="safe-cell-title-icon" />
<div class="safe-cell-title">瀹夊叏鎻愮ず</div>
</div>
@@ -123,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"
@@ -236,18 +245,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 {
--
Gitblit v1.9.1