From 468daba964700acfeb14f8deabd75267fb3b2f88 Mon Sep 17 00:00:00 2001 From: zhaoxing <2558691827@qq.com> Date: Fri, 13 Nov 2026 14:20:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E9=A1=B5=E8=B5=9B=E5=AD=A3=E4=BF=9D=E9=99=A9?= =?UTF-8?q?=E7=A7=BB=E8=87=B3=E4=BD=93=E5=8A=9B=E7=AD=89=E7=BA=A7=E4=B8=8A?= =?UTF-8?q?=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/seller/SellerListingFormPage.tsx | 45 +++++++++++++------ 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/frontend/src/features/seller/SellerListingFormPage.tsx b/frontend/src/features/seller/SellerListingFormPage.tsx index be2db73..c08698e 100644 --- a/frontend/src/features/seller/SellerListingFormPage.tsx +++ b/frontend/src/features/seller/SellerListingFormPage.tsx @@ -474,6 +474,26 @@ export function SellerListingFormPage({ mobile = false }: { mobile?: boolean } = setForm(previous => ({ ...previous, [key]: value })) } + // 移动端把「赛季保险」排在「体力等级」前面,PC 维持原顺序。 + const staminaLevelField = ( + updateForm('stamina_level', value)} + /> + ) + const seasonInsuranceField = ( + 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)} /> - updateForm('stamina_level', value)} - /> - updateForm('season_insurance', value)} - /> + {mobile ? ( + <> + {seasonInsuranceField} + {staminaLevelField} + + ) : ( + <> + {staminaLevelField} + {seasonInsuranceField} + + )}