feat(listing): 发布新增「是否解锁德穆兰」必填项,首页优先替换全英雄展示

This commit is contained in:
yml2213
2026-10-16 13:07:25 +08:00
parent b7b68abf6b
commit 703deb17d0
8 changed files with 73 additions and 2 deletions
@@ -123,6 +123,7 @@ function selectRadio<T extends string>(value: T, setter: (value: T) => void) {
const canChangeGameNameOptions = ['是', '否']
const allHeroOptions = ['是', '否']
const demulanUnlockOptions = ['是', '否']
const nextSeasonPassOptions = ['购买', '不购买']
const earlyMorningResponseOptions = ['是', '否']
@@ -443,6 +444,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 demulanUnlockOptions"
:key="opt"
type="button"
class="radio-btn"
:class="{ active: form.unlock_demulan === opt }"
@click="selectRadio(opt, value => (form.unlock_demulan = value))"
>
{{ opt }}
</button>
</div>
</template>
</van-field>
<van-field
v-if="nextSeasonPassEnabled"
label="下赛季是否购买通行证"