From 195cba9d6e2ee4fe4871e0feee875af0f0c88c3c Mon Sep 17 00:00:00 2001 From: JiaJun <2394389886@qq.com> Date: Tue, 21 Apr 2026 15:00:17 +0800 Subject: [PATCH] =?UTF-8?q?style(goods):=20=E8=B0=83=E6=95=B4=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=88=97=E8=A1=A8=E5=92=8C=E5=85=91=E6=8D=A2=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E7=9A=84=E6=A0=B7=E5=BC=8F=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/index.tsx | 2 +- src/features/goods/GoodsCategoryList.tsx | 16 ++++++++-------- src/features/goods/GoodsRedeemModal.tsx | 2 +- src/index.css | 8 ++++++++ src/views/goods/index.tsx | 4 ++-- 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/components/layout/index.tsx b/src/components/layout/index.tsx index 2c29cb9..698ddf1 100644 --- a/src/components/layout/index.tsx +++ b/src/components/layout/index.tsx @@ -2,7 +2,7 @@ import type { PageLayoutProps } from '@/types' function PageLayout({ children, - contentClassName = 'mx-auto flex min-h-screen w-full max-w-[1180px] flex-col px-4 pb-8 sm:px-6 lg:px-8', + contentClassName = 'mx-auto flex min-h-screen w-full max-w-[1220px] flex-col px-4 pb-8 sm:px-6 lg:px-8', }: PageLayoutProps) { return (
diff --git a/src/features/goods/GoodsCategoryList.tsx b/src/features/goods/GoodsCategoryList.tsx index 2526bb2..be20c67 100644 --- a/src/features/goods/GoodsCategoryList.tsx +++ b/src/features/goods/GoodsCategoryList.tsx @@ -27,7 +27,7 @@ function GoodsImage({ const showFallback = !imageUrl || hasError return ( -
+
{showFallback ? (
@@ -39,7 +39,7 @@ function GoodsImage({ setHasError(true)} /> ) : null} @@ -82,11 +82,11 @@ export function GoodsCategoryList({
) : null}
-
+
{Array.from({length: 4}).map((_, index) => (
@@ -144,19 +144,19 @@ export function GoodsCategoryList({ ) : null}
-
+
{category.items.map((product) => (
-
{product.title}
-
{product.subtitle}
+
{product.title}
+
{product.subtitle}
{product.scoreValue} {t('common.points')}
-
+