From 74699a172bdf509085abfe00ee81103b8d5812e9 Mon Sep 17 00:00:00 2001 From: jingrow Date: Sun, 24 Aug 2025 18:30:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=8C=BA=E5=9D=97=E5=8A=A0=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/[...slug]/page.jsx | 2 +- app/products/[...slug]/page.jsx | 6 +++--- components/products/ProductImageGallery.jsx | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/[...slug]/page.jsx b/app/[...slug]/page.jsx index bd1887e..751c43a 100644 --- a/app/[...slug]/page.jsx +++ b/app/[...slug]/page.jsx @@ -140,7 +140,7 @@ export default async function DynamicPage({ params, searchParams }) { {(data.image || data.subtitle) && (
{data.image && ( -
+
{data.title} {/* 图片和附加信息并排显示,响应式优化 */} {(data.image || data.subtitle) && ( -
+
{/* 图片轮播区块 */}
{/* 产品标题 */} {data.title && ( -

+

{data.title}

)} {/* 产品副标题 */} {data.subtitle && ( -
+
{data.subtitle}
)} diff --git a/components/products/ProductImageGallery.jsx b/components/products/ProductImageGallery.jsx index 9650497..7464d8d 100644 --- a/components/products/ProductImageGallery.jsx +++ b/components/products/ProductImageGallery.jsx @@ -44,14 +44,14 @@ const ProductImageGallery = ({ data }) => { }; return ( -
+
{/* 主图显示区域 */}
{data?.title {/* 导航箭头 */} {data.attachments.length > 1 && ( @@ -79,11 +79,11 @@ const ProductImageGallery = ({ data }) => {
{/* 缩略图列表 - 直接显示attachments */} -
+
{data.attachments.map((attachment, index) => (
changeMainImageByIndex(index)}