From 02acd5b3110d0cfe4a8d9c14c93dc13d7f8dffe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Thu, 9 Jul 2026 18:09:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(images):=20=E4=BF=AE=E6=AD=A3=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=B1=95=E7=A4=BA=E6=A8=A1=E5=BC=8F=E4=B8=BAaspectFit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将商品分类页图片组件的mode属性从aspectFill改为aspectFit - 修改首页图片组件的mode属性以保持图片完整显示 - 防止图片裁剪,提升图片展示效果一致性 --- .workbuddy/memory/2026-07-09.md | 8 ++++++++ src/pages/shop/index.tsx | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .workbuddy/memory/2026-07-09.md diff --git a/.workbuddy/memory/2026-07-09.md b/.workbuddy/memory/2026-07-09.md new file mode 100644 index 0000000..584b612 --- /dev/null +++ b/.workbuddy/memory/2026-07-09.md @@ -0,0 +1,8 @@ +# 2026-07-09 工作日志 + +## 图片 mode 修复 +- 修复商品图片显示不全的问题:将 `Image` 组件的 `mode` 从 `aspectFill` 改为 `aspectFit`(保持纵横比缩放,完整显示图片,不裁剪)。 +- 涉及页面: + - `src/pages/index/index.tsx`(首页热销商品) + - `src/pages/shop/category.tsx`(分类页商品列表) + - `src/pages/shop/index.tsx`(购物商城页面,用户后续反馈此页面也未修改) diff --git a/src/pages/shop/index.tsx b/src/pages/shop/index.tsx index a449b83..839447e 100644 --- a/src/pages/shop/index.tsx +++ b/src/pages/shop/index.tsx @@ -271,7 +271,7 @@ const ShopPage: React.FC = () => {