From 8a93a95d4203e8d7c01d934d7d22737c89012727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=94=90?= Date: Thu, 26 Nov 2026 00:01:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A6=96=E9=A1=B5=E5=B0=81?= =?UTF-8?q?=E9=9D=A2=E8=BD=AE=E6=92=AD=E8=A3=85=E4=BF=AE=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-admin/src/DecorationEditor.tsx | 9 +++++++-- web-site/src/main.tsx | 12 ++++++++++-- web-site/src/styles.css | 1 + 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/web-admin/src/DecorationEditor.tsx b/web-admin/src/DecorationEditor.tsx index 1011fd8..7cf0565 100644 --- a/web-admin/src/DecorationEditor.tsx +++ b/web-admin/src/DecorationEditor.tsx @@ -39,6 +39,7 @@ type Section = { title: string; subtitle: string; imageUrl: string; + imageUrls: string[]; buttonText: string; buttonUrl: string; sourceType: string; @@ -121,6 +122,7 @@ function createSection(type: SectionType): Section { ? "Industrial products and project-proven solutions for global B2B customers." : "", imageUrl: "", + imageUrls: [], buttonText: type === "HERO" ? "Explore Products" : "", buttonUrl: type === "HERO" ? "/products" : "", sourceType: type === "CONTENT" ? "CASE" : "", @@ -507,8 +509,8 @@ function PreviewSection({ className="pv-hero" style={{ ...style, - backgroundImage: item.imageUrl - ? `linear-gradient(90deg,rgba(0,0,0,.65),rgba(0,0,0,.1)),url(${item.imageUrl})` + backgroundImage: (item.imageUrls?.[0] || item.imageUrl) + ? `linear-gradient(90deg,rgba(0,0,0,.65),rgba(0,0,0,.1)),url(${item.imageUrls?.[0] || item.imageUrl})` : undefined, }} onClick={onSelect} @@ -723,6 +725,9 @@ function SectionSettings({ onChange={(e) => onChange({ imageUrl: e.target.value })} /> + +