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
@@ -120,6 +120,7 @@ function selectRadio<T extends string>(value: T, setter: (value: T) => void) {
}
const unlockSaidOptions = ['是', '否']
const allHeroOptions = ['是', '否']
// 在线时间:通栏自定义块 + 底部时间选择,避免 van-field 窄列截断原生 time
const onlineTimePickerVisible = ref(false)
@@ -421,6 +422,23 @@ const screenshotGuides: Record<string, string> = {
</template>
</van-field>
<van-field label="是否有全英雄" required class="publish-field">
<template #input>
<div class="radio-group">
<button
v-for="opt in allHeroOptions"
:key="opt"
type="button"
class="radio-btn"
:class="{ active: form.all_hero === opt }"
@click="selectRadio(opt, value => (form.all_hero = value))"
>
{{ opt }}
</button>
</div>
</template>
</van-field>
<div class="online-time-block">
<div class="online-time-head">
<div class="online-time-title">