feat(seller): 发布账号新增是否有全英雄必填字段,详情页展示
This commit is contained in:
@@ -16,6 +16,8 @@ export type PublishForm = {
|
||||
online_start: string
|
||||
online_end: string
|
||||
unlock_said: string
|
||||
/** 是否有全英雄(是/否) */
|
||||
all_hero: string
|
||||
ban_record: string
|
||||
common_regions: string[]
|
||||
depositAmountYuan: number | ''
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user