From 2a1436295f4c47658e34ac85f5162c233c6c7b59 Mon Sep 17 00:00:00 2001 From: Pine Date: Tue, 25 Aug 2026 19:30:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(tasks):=20=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=8E=A5=E5=8D=95=E5=8D=A1=E5=B1=95=E7=A4=BA=20=E6=8E=A5?= =?UTF-8?q?=E5=8D=95=E6=96=B9=E5=BC=8F/=E4=BA=A4=E4=BB=98=E6=97=B6?= =?UTF-8?q?=E9=99=90(=E8=BD=BB=E9=87=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - scan/index.jsx 我的接单卡显示 接单方式/交付时限;加 modeLabel helper。 Co-Authored-By: Claude --- miniprogram/src/pages/scan/index.jsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/miniprogram/src/pages/scan/index.jsx b/miniprogram/src/pages/scan/index.jsx index a181a1d..e2c528e 100644 --- a/miniprogram/src/pages/scan/index.jsx +++ b/miniprogram/src/pages/scan/index.jsx @@ -102,7 +102,8 @@ export default function Scan() { 已接单 任务码 {t.task_code || t.id} - 状态 {statusLabel(t.status)} + 接单方式 {modeLabel(t.mode)} · 状态 {statusLabel(t.status)} + {t.delivery_days > 0 && 交付时限 {t.delivery_days} 天} ))} @@ -119,3 +120,13 @@ function statusLabel(s) { default: return s || '—'; } } + +function modeLabel(m) { + switch (m) { + case 'grab': return '抢单'; + case 'bid': return '竞标'; + case 'assign': return '指派'; + case 'recommend': return '推荐'; + default: return m || '抢单'; + } +}