feat(seller): 发布账号新增是否有全英雄必填字段,详情页展示

This commit is contained in:
yml2213
2026-08-15 13:32:01 +08:00
parent 429ce74eff
commit 096121a8cd
6 changed files with 38 additions and 0 deletions
@@ -154,6 +154,10 @@ export function getListingChips(item: Listing): ListingDisplayChip[] {
if (readAssetString(item, 'unlock_said') === '是') {
chips.push({ label: '解锁赛伊德', value: '是' })
}
// 全英雄为必选项,仅在号主勾选「是」时展示
if (readAssetString(item, 'all_hero') === '是') {
chips.push({ label: '全英雄', value: '是' })
}
return chips.filter(chip => chip.value)
}