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
@@ -309,6 +309,7 @@ export function usePublishForm(options: UsePublishFormOptions) {
online_start: stringValue(onlineTime.start),
online_end: stringValue(onlineTime.end),
unlock_said: stringValue(summary.unlock_said),
all_hero: stringValue(summary.all_hero),
ban_record: stringValue(summary.ban_record),
common_regions: stringArray(summary.common_regions),
depositAmountYuan: listing.deposit_amount_cent > 0 ? listing.deposit_amount_cent / 100 : '',
@@ -717,6 +718,7 @@ export function usePublishForm(options: UsePublishFormOptions) {
}
if (pricing.banRecordOptions.value.length && !form.ban_record) return '请选择封禁记录'
if (!form.unlock_said) return '请选择是否解锁赛伊德'
if (!form.all_hero) return '请选择是否有全英雄'
if (form.depositAmountYuan === '' || Number(form.depositAmountYuan) < 0) return '请填写押金'
if (!Number.isFinite(Number(form.depositAmountYuan))) return '押金格式不正确'
if (
@@ -817,6 +819,7 @@ export function usePublishForm(options: UsePublishFormOptions) {
end: form.online_end,
},
unlock_said: form.unlock_said,
all_hero: form.all_hero,
ban_record: form.ban_record,
common_regions: form.common_regions,
remark: form.remark,