feat(frontend): 移动端发布页赛季保险移至体力等级上方
This commit is contained in:
@@ -474,6 +474,26 @@ export function SellerListingFormPage({ mobile = false }: { mobile?: boolean } =
|
|||||||
setForm(previous => ({ ...previous, [key]: value }))
|
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(() => {
|
useEffect(() => {
|
||||||
setQuantityValues(previous => {
|
setQuantityValues(previous => {
|
||||||
const next = { ...previous }
|
const next = { ...previous }
|
||||||
@@ -1218,20 +1238,17 @@ export function SellerListingFormPage({ mobile = false }: { mobile?: boolean } =
|
|||||||
onChange={event => updateForm('secret_kd', event.target.value)}
|
onChange={event => updateForm('secret_kd', event.target.value)}
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<ChoiceField
|
{mobile ? (
|
||||||
label="体力等级"
|
<>
|
||||||
required
|
{seasonInsuranceField}
|
||||||
value={form.stamina_level}
|
{staminaLevelField}
|
||||||
options={options.level_options}
|
</>
|
||||||
onChange={value => updateForm('stamina_level', value)}
|
) : (
|
||||||
/>
|
<>
|
||||||
<ChoiceField
|
{staminaLevelField}
|
||||||
label="赛季保险"
|
{seasonInsuranceField}
|
||||||
required
|
</>
|
||||||
value={form.season_insurance}
|
)}
|
||||||
options={options.insurance_options}
|
|
||||||
onChange={value => updateForm('season_insurance', value)}
|
|
||||||
/>
|
|
||||||
<ChoiceField
|
<ChoiceField
|
||||||
label="负重等级"
|
label="负重等级"
|
||||||
required
|
required
|
||||||
|
|||||||
Reference in New Issue
Block a user