feat(tasks): 小程序接单卡展示 接单方式/交付时限(轻量)
- scan/index.jsx 我的接单卡显示 接单方式/交付时限;加 modeLabel helper。 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -102,7 +102,8 @@ export default function Scan() {
|
||||
<Text className="bk-phase claimed">已接单</Text>
|
||||
</View>
|
||||
<Text className="bk-time">任务码 {t.task_code || t.id}</Text>
|
||||
<Text className="bk-time">状态 {statusLabel(t.status)}</Text>
|
||||
<Text className="bk-time">接单方式 {modeLabel(t.mode)} · 状态 {statusLabel(t.status)}</Text>
|
||||
{t.delivery_days > 0 && <Text className="bk-time">交付时限 {t.delivery_days} 天</Text>}
|
||||
</View>
|
||||
))}
|
||||
</View>
|
||||
@@ -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 || '抢单';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user