From f2e7fd9d854f621dfc7def943f95a0f9ce02a759 Mon Sep 17 00:00:00 2001 From: chashaobao Date: Mon, 1 Sep 2025 18:44:26 +0800 Subject: [PATCH] feat: --- src/pages/job-select-my-publish/index.less | 22 +++++++++++++++- src/pages/job-select-my-publish/index.tsx | 29 ++++++++++++++++------ 2 files changed, 42 insertions(+), 9 deletions(-) diff --git a/src/pages/job-select-my-publish/index.less b/src/pages/job-select-my-publish/index.less index 605de3d..13529a4 100644 --- a/src/pages/job-select-my-publish/index.less +++ b/src/pages/job-select-my-publish/index.less @@ -56,7 +56,27 @@ &__icon { width: 48px; height: 48px; + } + + &__block { margin-top: 24px; + .flex-row(); + gap: 16px; + } + + &__status { + font-size: 28px; + line-height: 32px; + font-weight: 400; + color: @blColorG1; + + &.open { + color: @blHighlightColor; + } + + &.error { + color: #FF5051; + } } } -} \ No newline at end of file +} diff --git a/src/pages/job-select-my-publish/index.tsx b/src/pages/job-select-my-publish/index.tsx index f0b60e8..5561a26 100644 --- a/src/pages/job-select-my-publish/index.tsx +++ b/src/pages/job-select-my-publish/index.tsx @@ -6,6 +6,7 @@ import classNames from 'classnames'; import { useCallback, useState } from 'react'; import { EventName, OpenSource } from '@/constants/app'; +import { JOB_MANAGE_STATUS_TITLE_MAP, JobManageStatus } from '@/constants/job'; import { JobManageInfo } from '@/types/job'; import { getJobLocation, requestJobManageList } from '@/utils/job'; import { getPageQuery, navigateBack } from '@/utils/route'; @@ -15,7 +16,14 @@ import Toast from '@/utils/toast'; import './index.less'; const PREFIX = 'page-job-select-my-publish'; - +const STATUS_CLASS_MAP = { + [JobManageStatus.WaitVerify]: 'pending', + [JobManageStatus.Open]: 'open', + [JobManageStatus.Pending]: 'pending', + [JobManageStatus.Error]: 'error', + [JobManageStatus.Close]: 'close', + [JobManageStatus.Expire]: 'close', +}; export default function JobSelectMyPublish() { const [list, setList] = useState([]); const [jobId, setJobId] = useState('1'); @@ -57,13 +65,18 @@ export default function JobSelectMyPublish() {
{formatTime(item.updated)}
- {item.id === jobId && ( - - )} +
+
+ {JOB_MANAGE_STATUS_TITLE_MAP[item.status]} +
+ {item.id === jobId && ( + + )} +
))}