From 420954c0796b1500f5b54d7df360cba772700fc9 Mon Sep 17 00:00:00 2001 From: peijunlei Date: Fri, 11 Sep 2026 13:40:45 +0800 Subject: [PATCH 1/5] =?UTF-8?q?style(solution2.css,=20solution2.html):=20?= =?UTF-8?q?=E6=9A=82=E6=97=B6=E7=A7=BB=E9=99=A4=E6=8C=89=E9=92=AE=E5=92=8C?= =?UTF-8?q?=E8=BE=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/dist_static/static/css/solution2.css | 4 ++-- public/themes/website/1/zh/demo/solution2.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/themes/dist_static/static/css/solution2.css b/public/themes/dist_static/static/css/solution2.css index ca04dca..97d6957 100644 --- a/public/themes/dist_static/static/css/solution2.css +++ b/public/themes/dist_static/static/css/solution2.css @@ -137,7 +137,7 @@ } .sl2-arch__desc { margin: 0; - color: var(--color-text); + color: var(--color-text-muted); font-family: "MiSans VF", "PingFang SC", sans-serif; font-size: var(--font-20); font-weight: 400; @@ -149,7 +149,7 @@ overflow: hidden; border-radius: 1.875rem; background: var(--color-white); - border: 1px solid rgb(223, 224, 226); + /* border: 1px solid rgb(223, 224, 226); */ } .sl2-arch__panel img { display: block; diff --git a/public/themes/website/1/zh/demo/solution2.html b/public/themes/website/1/zh/demo/solution2.html index 7ddd484..02d6e4c 100755 --- a/public/themes/website/1/zh/demo/solution2.html +++ b/public/themes/website/1/zh/demo/solution2.html @@ -97,7 +97,7 @@ $current_cate_id = $current_cate['id'] ?? 0;

{$sub_cates[2]['title'] ?? ''}

{$sub_cates[2]['description'] ?? ''}

- +
{$sub_cates[2]['title'] ?? ''} From 34bdb3d13f8f379cd2df4de961ecc915e3472624 Mon Sep 17 00:00:00 2001 From: peijunlei Date: Fri, 11 Sep 2026 17:25:54 +0800 Subject: [PATCH 2/5] =?UTF-8?q?style(solution2.css):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=A0=B8=E5=BF=83=E4=BA=A7=E5=93=81=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/dist_static/static/css/solution2.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/themes/dist_static/static/css/solution2.css b/public/themes/dist_static/static/css/solution2.css index 97d6957..09f1625 100644 --- a/public/themes/dist_static/static/css/solution2.css +++ b/public/themes/dist_static/static/css/solution2.css @@ -219,6 +219,14 @@ font-size: var(--font-20); font-weight: 400; line-height: var(--font-28); + + /* 4行 */ + min-height: calc(var(--font-28) * 4); + display: -webkit-box; + -webkit-line-clamp: 4; + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; } .sl2-core__media { padding: 3rem; From 45bf4ecb681b0d176e75999aefdbb51b16f4a554 Mon Sep 17 00:00:00 2001 From: peijunlei Date: Fri, 11 Sep 2026 17:40:26 +0800 Subject: [PATCH 3/5] =?UTF-8?q?style(solution2.css):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88=E5=9B=BE=E7=89=87=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/dist_static/static/css/solution2.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/themes/dist_static/static/css/solution2.css b/public/themes/dist_static/static/css/solution2.css index 09f1625..3480582 100644 --- a/public/themes/dist_static/static/css/solution2.css +++ b/public/themes/dist_static/static/css/solution2.css @@ -120,7 +120,7 @@ display: flex; align-items: start; justify-content: space-between; - gap: 10.625rem; + gap: 5rem; } .sl2-arch__copy { display: flex; @@ -154,7 +154,8 @@ .sl2-arch__panel img { display: block; width: 100%; - height: auto; + /* height: auto; */ + object-fit: contain; } .sl2-core { From 966f0a3c42f99cf3b967c0fad468b444b45dd483 Mon Sep 17 00:00:00 2001 From: peijunlei Date: Fri, 11 Sep 2026 17:50:42 +0800 Subject: [PATCH 4/5] =?UTF-8?q?style(solution2.css):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88=E5=9B=BE=E7=89=87=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/dist_static/static/css/solution2.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/themes/dist_static/static/css/solution2.css b/public/themes/dist_static/static/css/solution2.css index 3480582..ab8e77f 100644 --- a/public/themes/dist_static/static/css/solution2.css +++ b/public/themes/dist_static/static/css/solution2.css @@ -145,7 +145,7 @@ margin-bottom: 2.5rem; } .sl2-arch__panel { - width: 60rem; + width: 100%; overflow: hidden; border-radius: 1.875rem; background: var(--color-white); From f26f98c02a5fac337ce14a435216ed97dde07491 Mon Sep 17 00:00:00 2001 From: peijunlei Date: Fri, 11 Sep 2026 17:58:41 +0800 Subject: [PATCH 5/5] =?UTF-8?q?feat(product.js):=20=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E6=A8=A1=E5=9D=97=E4=B8=8D=E8=B6=85=E8=BF=87?= =?UTF-8?q?4=E4=B8=AA=E6=97=B6=E3=80=82=E4=B8=8D=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=8C=89=E9=92=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/dist_static/static/js/product.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/themes/dist_static/static/js/product.js b/public/themes/dist_static/static/js/product.js index bb083c1..b47e3c6 100644 --- a/public/themes/dist_static/static/js/product.js +++ b/public/themes/dist_static/static/js/product.js @@ -32,10 +32,18 @@ function relatedCarouselInit() { const root = document.querySelector(".p-related"); const el = root?.querySelector(".p-related__swiper"); if (!root || !el || !window.Swiper) return; + const slideCount = el.querySelectorAll(".swiper-wrapper > .swiper-slide").length; + // 一屏展示 4 条,不超过 4 条时隐藏切换按钮 + if (slideCount <= 4) { + root.querySelectorAll(".p-related__header .s-arrows").forEach((node) => { + node.style.display = "none"; + }); + } new window.Swiper(el, { slidesPerView: 1.15, spaceBetween: 16, grabCursor: true, + watchOverflow: true, pagination: { el: root.querySelector(".p-related__pagination"), clickable: true