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/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue | 38 +++++++++++++++++++++++++++++++++++--- 1 files changed, 35 insertions(+), 3 deletions(-) diff --git a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue index d8fba8a..f66686a 100644 --- a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue +++ b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue @@ -108,14 +108,37 @@ @click="handleCall" ></PageFooterAction> <PageFooterBtn - v-if="detail.releaseStatus === EnumTaskReleaseStatus.InProcess" + v-if="showApplyBtn" type="primary" @click="handleApply" :disabled="detail?.hireStatus === EnumTaskUserHireStatus.Wait" >{{ `鎶ュ悕锛�${detail?.applyCount ?? 0}浜哄凡鎶ュ悕锛塦 }}</PageFooterBtn > - <PageFooterBtn v-if="detail.hireStatus === EnumTaskUserHireStatus.Wait" color="#999999" - >宸插仠姝�</PageFooterBtn + <PageFooterBtn + v-if="detail.applyButton === GetTaskInfoQueryResultApplyButton.WaitHire" + color="#999999" + disabled + >寰呯‘璁�</PageFooterBtn + > + <!-- <PageFooterBtn + v-if="detail.applyButton === GetTaskInfoQueryResultApplyButton.WaitSignContract" + >鍘荤绾�</PageFooterBtn + > --> + <PageFooterBtn + v-if="detail.hireButton === GetTaskInfoQueryResultHireButton.InProcess" + color="#999999" + disabled + >杩涜涓�</PageFooterBtn + > + <!-- <PageFooterBtn + v-if="detail.hireButton === GetTaskInfoQueryResultHireButton.ApplyCheckReceive" + >鐢宠楠屾敹</PageFooterBtn + > --> + <PageFooterBtn + v-if="detail.hireButton === GetTaskInfoQueryResultHireButton.Completed" + color="#999999" + disabled + >宸插畬鎴�</PageFooterBtn > <PageFooterBtn v-if="detail.releaseStatus === EnumTaskReleaseStatus.Stopped" color="#999999" >宸插仠姝�</PageFooterBtn @@ -147,6 +170,8 @@ BillingMethodEnumUnit, EnumTaskReleaseStatus, EnumTaskUserHireStatus, + GetTaskInfoQueryResultApplyButton, + GetTaskInfoQueryResultHireButton, } from '@12333/constants'; import { useAccessLogin } from '@/hooks'; @@ -161,6 +186,13 @@ const router = Taro.useRouter(); const taskId = router.params?.id ?? ''; +const showApplyBtn = computed(() => { + return ( + detail.value?.releaseStatus === EnumTaskReleaseStatus.InProcess && + (detail.value?.hireStatus === EnumTaskUserHireStatus.Wait || !detail.value?.hireStatus) + ); +}); + const { isLoading, isError, -- Gitblit v1.9.1