From 4ef86d8a1f494caa1e136ff78f9ea258d01164b1 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期四, 16 十月 2025 09:28:44 +0800 Subject: [PATCH] Merge branch 'master' into dev-1.1.2 --- apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue | 30 +++++++++++++++++------------- 1 files changed, 17 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..20a4423 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]" /> @@ -123,7 +124,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 +237,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