feat(frontend): 移动端发布页赛季保险移至体力等级上方

This commit is contained in:
2026-11-13 14:20:21 +08:00
parent a57b087aa9
commit 468daba964
@@ -474,6 +474,26 @@ export function SellerListingFormPage({ mobile = false }: { mobile?: boolean } =
setForm(previous => ({ ...previous, [key]: value }))
}
// 移动端把「赛季保险」排在「体力等级」前面,PC 维持原顺序。
const staminaLevelField = (
<ChoiceField
label="体力等级"
required
value={form.stamina_level}
options={options.level_options}
onChange={value => updateForm('stamina_level', value)}
/>
)
const seasonInsuranceField = (
<ChoiceField
label="赛季保险"
required
value={form.season_insurance}
options={options.insurance_options}
onChange={value => updateForm('season_insurance', value)}
/>
)
useEffect(() => {
setQuantityValues(previous => {
const next = { ...previous }
@@ -1218,20 +1238,17 @@ export function SellerListingFormPage({ mobile = false }: { mobile?: boolean } =
onChange={event => updateForm('secret_kd', event.target.value)}
/>
</label>
<ChoiceField
label="体力等级"
required
value={form.stamina_level}
options={options.level_options}
onChange={value => updateForm('stamina_level', value)}
/>
<ChoiceField
label="赛季保险"
required
value={form.season_insurance}
options={options.insurance_options}
onChange={value => updateForm('season_insurance', value)}
/>
{mobile ? (
<>
{seasonInsuranceField}
{staminaLevelField}
</>
) : (
<>
{staminaLevelField}
{seasonInsuranceField}
</>
)}
<ChoiceField
label="负重等级"
required