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 || '抢单'; + } +}