From 8958b21ec27da1b652d5b631e7cbb34c7890b14f Mon Sep 17 00:00:00 2001 From: peijunlei Date: Fri, 11 Sep 2026 09:49:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(solution2):=20=E6=9C=BA=E5=99=A8=E4=BA=BA?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88=E6=96=B9=E6=A1=88=E6=9E=B6?= =?UTF-8?q?=E6=9E=84=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/dist_static/static/css/solution2.css | 67 ++++++++++++++++++---- public/themes/dist_static/static/js/solution2.js | 10 ++++ public/themes/website/1/zh/demo/solution2.html | 12 +++- 3 files changed, 75 insertions(+), 14 deletions(-) diff --git a/public/themes/dist_static/static/css/solution2.css b/public/themes/dist_static/static/css/solution2.css index 7f5209e..ca04dca 100644 --- a/public/themes/dist_static/static/css/solution2.css +++ b/public/themes/dist_static/static/css/solution2.css @@ -55,7 +55,7 @@ .sl2-adv { padding-top: 7.5rem; - padding-bottom: 0; + padding-bottom: 7.5rem; } .sl2-adv__title { margin: 0 0 3.125rem; @@ -66,14 +66,14 @@ line-height: var(--font-64); } .sl2-adv__list { - display: grid; - grid-template-columns: repeat(3, minmax(0, 1fr)); + display: flex; gap: 2.5rem; margin: 0; padding: 0; list-style: none; } .sl2-adv__item { + flex: 1; display: flex; flex-direction: column; gap: 1.5rem; @@ -113,17 +113,39 @@ .sl2-arch { padding-top: 7.5rem; - padding-bottom: 0; + padding-bottom: 7.5rem; + background: rgba(175, 181, 185, 0.15); +} +.sl2-arch__layout { + display: flex; + align-items: start; + justify-content: space-between; + gap: 10.625rem; +} +.sl2-arch__copy { + display: flex; + flex-direction: column; + align-items: flex-start; } .sl2-arch__title { - margin: 0 0 3.125rem; color: var(--color-text); font-family: "MiSans VF", "PingFang SC", sans-serif; font-size: var(--font-48); font-weight: 400; line-height: var(--font-64); + margin-bottom: 2rem; +} +.sl2-arch__desc { + margin: 0; + color: var(--color-text); + font-family: "MiSans VF", "PingFang SC", sans-serif; + font-size: var(--font-20); + font-weight: 400; + line-height: var(--font-28); + margin-bottom: 2.5rem; } .sl2-arch__panel { + width: 60rem; overflow: hidden; border-radius: 1.875rem; background: var(--color-white); @@ -530,8 +552,27 @@ .sl2-more { padding-top: 4rem; } + .sl2-arch { + padding-bottom: 4rem; + } + .sl2-arch__layout { + flex-direction: column; + gap: 2rem; + } + .sl2-arch__copy { + width: 100%; + } + .sl2-arch__title { + margin-bottom: 1.5rem; + } + .sl2-arch__desc { + margin-bottom: 1.5rem; + } + .sl2-arch__panel { + width: 100%; + } .sl2-adv__list { - grid-template-columns: 1fr; + flex-direction: column; gap: 24Px; } .sl2-core__slide { @@ -576,14 +617,18 @@ padding-top: calc(var(--header-h) + 5rem); } .sl2-hero__title, - .sl2-hero .sl2-adv__title, - .sl2-hero .sl2-arch__title, - .sl2-hero .sl2-core__title, - .sl2-hero .sl2-scene__title, - .sl2-hero .sl2-more__title { + .sl2-adv__title, + .sl2-arch__title, + .sl2-core__title, + .sl2-scene__title, + .sl2-more__title { font-size: 32Px; line-height: 44Px; } + .sl2-arch__desc { + font-size: 18Px; + line-height: 26Px; + } .sl2-hero__media { height: 280Px; } diff --git a/public/themes/dist_static/static/js/solution2.js b/public/themes/dist_static/static/js/solution2.js index 7c7b128..9e318ee 100644 --- a/public/themes/dist_static/static/js/solution2.js +++ b/public/themes/dist_static/static/js/solution2.js @@ -113,8 +113,18 @@ function initMoreSwiper() { } }); } +/** 查看产品组合表(点击逻辑待补充) */ +function onArchProductTableClick() { + // TODO +} +function initArchTableBtn() { + const btn = document.querySelector("[data-arch-table-btn]"); + if (!btn) return; + btn.addEventListener("click", onArchProductTableClick); +} $(function () { setActiveNav(); + initArchTableBtn(); initCoreSwiper(); initSceneSwiper(); initMoreSwiper(); diff --git a/public/themes/website/1/zh/demo/solution2.html b/public/themes/website/1/zh/demo/solution2.html index ebd36d5..7ddd484 100755 --- a/public/themes/website/1/zh/demo/solution2.html +++ b/public/themes/website/1/zh/demo/solution2.html @@ -93,9 +93,15 @@ $current_cate_id = $current_cate['id'] ?? 0; {/if} {if !empty($sub_cates[2])}
-

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

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

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

+

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

+ +
+
+ {$sub_cates[2]['title'] ?? ''} +
{/if}