From 1a21e84a60b0abe5d1551a2945818efaad68ed3d Mon Sep 17 00:00:00 2001 From: xumengxiang <302869564@qq.com> Date: Mon, 14 Sep 2026 20:24:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8A=95=E8=B5=84=E7=9F=A5?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../themes/dist_static/static/css/investment.css | 78 +++--- public/themes/dist_static/static/js/investment.js | 20 +- public/themes/website/1/en/demo/about.html | 280 +++++++++++++-------- public/themes/website/1/en/demo/solution2.html | 213 +++++++++------- public/themes/website/1/zh/demo/solution2.html | 219 +++++++++------- public/themes/website/4/en/demo/about.html | 211 +++++++++------- public/themes/website/4/en/demo/solution2.html | 213 +++++++++------- public/themes/website/4/zh/demo/solution2.html | 213 +++++++++------- 8 files changed, 861 insertions(+), 586 deletions(-) diff --git a/public/themes/dist_static/static/css/investment.css b/public/themes/dist_static/static/css/investment.css index ed7fedd..b53829a 100644 --- a/public/themes/dist_static/static/css/investment.css +++ b/public/themes/dist_static/static/css/investment.css @@ -116,7 +116,9 @@ background: rgb(241, 241, 241); color: var(--color-text); box-sizing: border-box; - transition: background 0.3s ease, color 0.3s ease; + transition: + background 0.3s ease, + color 0.3s ease; } .iv-announce__card:hover { background: var(--color-primary); @@ -170,7 +172,9 @@ font-size: var(--font-16); font-weight: 400; line-height: var(--font-21); - transition: color var(--duration-fast) var(--easing), border-color var(--duration-fast) var(--easing); + transition: + color var(--duration-fast) var(--easing), + border-color var(--duration-fast) var(--easing); } .iv-announce__link svg { width: 1rem; @@ -288,7 +292,7 @@ grid-template-columns: minmax(0, 1fr) minmax(0, 67.5rem); gap: 2.5rem; padding-top: 6.25rem; - padding-bottom:6.25rem; + padding-bottom: 6.25rem; } .iv-learn__title { margin: 0; @@ -303,7 +307,15 @@ padding: 0; list-style: none; } -.iv-learn__list:not(.is-expanded) .iv-learn__item:nth-child(n+7) { +.iv-learn__list.is-expanded { + max-height: calc(8 * (4.25rem + var(--font-32) + 1px)); + overflow-y: auto; + overscroll-behavior: contain; + scrollbar-gutter: stable; + padding-right: 3rem; + scrollbar-width: thin; +} +.iv-learn__list:not(.is-expanded) .iv-learn__item:nth-child(n + 7) { display: none; } .iv-learn__item { @@ -392,11 +404,15 @@ .iv-learn__more-icon--up { opacity: 0.35; transform: scaleY(-1); - transition: opacity var(--duration-fast) var(--easing), transform var(--duration-fast) var(--easing); + transition: + opacity var(--duration-fast) var(--easing), + transform var(--duration-fast) var(--easing); } .iv-learn__more-icon--down { opacity: 1; - transition: opacity var(--duration-fast) var(--easing), transform var(--duration-fast) var(--easing); + transition: + opacity var(--duration-fast) var(--easing), + transform var(--duration-fast) var(--easing); } .iv-learn__more.is-expanded .iv-learn__more-icon--up { opacity: 1; @@ -491,35 +507,35 @@ @media (max-width: 1439px) { .iv-hero__title h1 { - font-size: 40Px; - line-height: 54Px; + font-size: 40px; + line-height: 54px; } .iv-hero__media { - height: 520Px; + height: 520px; } .iv-info, .iv-learn, .iv-hotline__inner { grid-template-columns: 1fr; - gap: 32Px; + gap: 32px; } .iv-info, .iv-announce, .iv-stock, .iv-learn { - padding-top: 80Px; - padding-bottom: 80Px; + padding-top: 80px; + padding-bottom: 80px; } .iv-stock__body { grid-template-columns: 1fr; - gap: 40Px; + gap: 40px; } .iv-stock__title { - margin-bottom: 48Px; + margin-bottom: 48px; } .iv-stock__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 24Px 40Px; + gap: 24px 40px; } } @media (max-width: 992px) { @@ -527,45 +543,45 @@ grid-template-columns: 1fr; } .iv-announce__card { - min-height: 280Px; - padding: 28Px; + min-height: 280px; + padding: 28px; } .iv-learn__item { grid-template-columns: 1fr; - gap: 12Px; + gap: 12px; align-items: flex-start; } } @media (max-width: 576px) { .iv-hero__title { padding-top: calc(var(--header-h) + 5rem); - padding-bottom: 24Px; + padding-bottom: 24px; } .iv-hero__title h1 { - font-size: 28Px; - line-height: 40Px; + font-size: 28px; + line-height: 40px; } .iv-hero__media { - height: 280Px; + height: 280px; } .iv-info__title, .iv-announce__title, .iv-stock__title, .iv-learn__title, .iv-hotline__title { - font-size: 32Px; - line-height: 44Px; + font-size: 32px; + line-height: 44px; } .iv-info__value, .iv-announce__name, .iv-learn__name, .iv-hotline__value { - font-size: 18Px; - line-height: 26Px; + font-size: 18px; + line-height: 26px; } .iv-stock__price { - font-size: 44Px; - line-height: 44Px; + font-size: 44px; + line-height: 44px; } .iv-stock__metrics { grid-template-columns: 1fr 1fr; @@ -594,10 +610,10 @@ .iv-announce__arrows-mobile { display: flex; justify-content: flex-start; - margin-top: 24Px; + margin-top: 24px; } .iv-announce__arrows-mobile .s-arrows { display: flex; - gap: 16Px; + gap: 16px; } -} \ No newline at end of file +} diff --git a/public/themes/dist_static/static/js/investment.js b/public/themes/dist_static/static/js/investment.js index ead3c73..74f48c5 100644 --- a/public/themes/dist_static/static/js/investment.js +++ b/public/themes/dist_static/static/js/investment.js @@ -57,9 +57,27 @@ function initLearnToggle() { return; } btn.addEventListener("click", () => { - list.classList.toggle("is-expanded"); + const isExpanded = list.classList.toggle("is-expanded"); btn.classList.toggle("is-expanded"); + + // 阻止平滑滚动库接管滚动 + if (isExpanded) { + list.setAttribute("data-lenis-prevent", ""); + } else { + list.removeAttribute("data-lenis-prevent"); + } }); + + // 阻止滚动事件冒泡(作为回退方案) + list.addEventListener("wheel", (e) => { + if (!list.classList.contains("is-expanded")) return; + const { scrollTop, scrollHeight, clientHeight } = list; + const atTop = e.deltaY < 0 && scrollTop <= 0; + const atBottom = e.deltaY > 0 && scrollTop + clientHeight >= scrollHeight - 1; + if (!atTop && !atBottom) { + e.stopPropagation(); + } + }, { passive: false }); } $(function() { setActiveNav(); diff --git a/public/themes/website/1/en/demo/about.html b/public/themes/website/1/en/demo/about.html index eb68331..d1afb89 100755 --- a/public/themes/website/1/en/demo/about.html +++ b/public/themes/website/1/en/demo/about.html @@ -8,51 +8,52 @@ - - - - - + + + - - + + + - - -{include file="components/header"} + + + {include file="components/header"}
@@ -76,7 +77,7 @@ $ui_download_csr = uiId('download_csr'); $csr_report_href = getMuiLangUrl('/download.html'); if ($ui_download_csr > 0) { - $csr_report_href .= '?cid=' . $ui_download_csr; + $csr_report_href .= '?cid=' . $ui_download_csr; } {/php} {hcTaglib:category id="$ui_about_intro" item="vo" field="*"} @@ -90,16 +91,17 @@ $stats_raw = explode(',', $vo['desc']); $stats_list = []; foreach ($stats_raw as $item) { - $parts = explode(';', $item); - if (count($parts) === 3) { - $stats_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'text' => $parts[2]]; - } + $parts = explode(';', $item); + if (count($parts) === 3) { + $stats_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'text' => $parts[2]]; + } } {/php}
@@ -289,28 +355,40 @@
@@ -336,17 +414,19 @@ {include file="components/mask"} -{include file="components/footer"} - + {include file="components/footer"} + - - - - - - - - + + + + + + + + diff --git a/public/themes/website/1/en/demo/solution2.html b/public/themes/website/1/en/demo/solution2.html index 1163280..9e6af30 100755 --- a/public/themes/website/1/en/demo/solution2.html +++ b/public/themes/website/1/en/demo/solution2.html @@ -12,41 +12,41 @@ $current_cate_id = $current_cate['id'] ?? 0; - - - - - + + + - - + + @@ -54,8 +54,8 @@ $current_cate_id = $current_cate['id'] ?? 0; - -{include file="components/header"} + + {include file="components/header"}
{if !empty($sub_cates[0])} @@ -80,13 +80,13 @@ $current_cate_id = $current_cate['id'] ?? 0; $contents = getContentByCategory($sub_cates[1]['id'], $seller_id, 6, 'sort asc', ['thumbnail', 'category']); {/php} {volist name="contents" id="vo"} -
  • - -

    {$vo.title ?? ''}

    -

    {$vo.description ?? ''}

    -
  • +
  • + +

    {$vo.title ?? ''}

    +

    {$vo.description ?? ''}

    +
  • {/volist} @@ -95,7 +95,8 @@ $current_cate_id = $current_cate['id'] ?? 0;

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

    - {$sub_cates[2]['description'] ?? ''} + {$sub_cates[2]['description'] ?? ''}
    {/if} @@ -105,15 +106,23 @@ $current_cate_id = $current_cate['id'] ?? 0;

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

    @@ -128,11 +137,11 @@ $current_cate_id = $current_cate['id'] ?? 0;

    {$vo.title ?? ''}

    {$vo.description ?? ''}

    - Explore more + Explore more
    - {$vo.title ?? ''} + {$vo.title ?? ''}
    {/volist} @@ -206,15 +215,23 @@ $current_cate_id = $current_cate['id'] ?? 0;

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

    @@ -222,39 +239,51 @@ $current_cate_id = $current_cate['id'] ?? 0;
    - {php}$others = getOtherCategoryCategoryId($current_cate['id'],$seller_id,5);{/php} - {volist name="others" id="vo"} - - {/volist} -
    + {php}$others = getOtherCategoryCategoryId($current_cate['id'],$seller_id,5);{/php} + {volist name="others" id="vo"} + + {/volist} +
    @@ -265,17 +294,19 @@ $current_cate_id = $current_cate['id'] ?? 0; {include file="components/mask"} -{include file="components/footer"} - + {include file="components/footer"} + - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/1/zh/demo/solution2.html b/public/themes/website/1/zh/demo/solution2.html index 1a02e6f..3a139c7 100755 --- a/public/themes/website/1/zh/demo/solution2.html +++ b/public/themes/website/1/zh/demo/solution2.html @@ -12,41 +12,41 @@ $current_cate_id = $current_cate['id'] ?? 0; - - - - - + + + - - + + @@ -54,16 +54,16 @@ $current_cate_id = $current_cate['id'] ?? 0; - -{include file="components/header"} + + {include file="components/header"}
    {if !empty($sub_cates[0])}
    - {php} - $sub_cates_tmp0 = $sub_cates[0]['title'] ?? ''; - {/php} + {php} + $sub_cates_tmp0 = $sub_cates[0]['title'] ?? ''; + {/php}

    {$sub_cates_tmp0|raw}

    {$sub_cates[0]['description'] ?? ''} @@ -83,13 +83,13 @@ $current_cate_id = $current_cate['id'] ?? 0; $contents = getContentByCategory($sub_cates[1]['id'], $seller_id, 6, 'sort asc', ['thumbnail', 'category']); {/php} {volist name="contents" id="vo"} -

  • - -

    {$vo.title ?? ''}

    -

    {$vo.description ?? ''}

    -
  • +
  • + +

    {$vo.title ?? ''}

    +

    {$vo.description ?? ''}

    +
  • {/volist}
    @@ -103,7 +103,8 @@ $current_cate_id = $current_cate['id'] ?? 0;
    - {$sub_cates[2]['title'] ?? ''} + {$sub_cates[2]['title'] ?? ''}
    @@ -114,15 +115,23 @@ $current_cate_id = $current_cate['id'] ?? 0;

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

    @@ -137,11 +146,11 @@ $current_cate_id = $current_cate['id'] ?? 0;

    {$vo.title ?? ''}

    {$vo.description ?? ''}

    - 探索更多 + 探索更多
    - {$vo.title ?? ''} + {$vo.title ?? ''}
    {/volist} @@ -214,15 +223,23 @@ $current_cate_id = $current_cate['id'] ?? 0;

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

    @@ -230,39 +247,51 @@ $current_cate_id = $current_cate['id'] ?? 0;
    - {php}$others = getOtherCategoryCategoryId($current_cate['id'],$seller_id,5);{/php} - {volist name="others" id="vo"} - - {/volist} -
    + {php}$others = getOtherCategoryCategoryId($current_cate['id'],$seller_id,5);{/php} + {volist name="others" id="vo"} + + {/volist} +
    @@ -273,17 +302,19 @@ $current_cate_id = $current_cate['id'] ?? 0; {include file="components/mask"} -{include file="components/footer"} - + {include file="components/footer"} + - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/en/demo/about.html b/public/themes/website/4/en/demo/about.html index a88951b..8a37b40 100644 --- a/public/themes/website/4/en/demo/about.html +++ b/public/themes/website/4/en/demo/about.html @@ -8,51 +8,52 @@ - - - - - + + + - - + + + - - -{include file="components/header"} + + + {include file="components/header"}
    @@ -76,7 +77,7 @@ $ui_download_csr = uiId('download_csr'); $csr_report_href = getMuiLangUrl('/download.html'); if ($ui_download_csr > 0) { - $csr_report_href .= '?cid=' . $ui_download_csr; + $csr_report_href .= '?cid=' . $ui_download_csr; } {/php} {hcTaglib:category id="$ui_about_intro" item="vo" field="*"} @@ -90,16 +91,17 @@ $stats_raw = explode(',', $vo['desc']); $stats_list = []; foreach ($stats_raw as $item) { - $parts = explode(';', $item); - if (count($parts) === 3) { - $stats_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'text' => $parts[2]]; - } + $parts = explode(';', $item); + if (count($parts) === 3) { + $stats_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'text' => $parts[2]]; + } } {/php}
      {volist name="stats_list" id="stat"}
    • - {$stat.num}{$stat.unit} + {$stat.num}{$stat.unit} {$stat.text}
    • {/volist} @@ -115,30 +117,42 @@

      {$vo.title}

    - {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="9999" mainField="id,title,sub_title,content,thumbnail" sort="sort desc" subField="" onlyData="2"} + {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="9999" + mainField="id,title,sub_title,content,thumbnail" sort="sort desc" subField="" onlyData="2"}

    {$case_top.title}

    Learn more -
    @@ -151,15 +165,23 @@
    @@ -177,10 +199,10 @@ $culture_raw = explode('#', $vo['description']); $culture_list = []; foreach ($culture_raw as $item) { - $parts = explode(';', $item); - if (count($parts) === 3) { - $culture_list[] = ['zh' => $parts[0], 'en' => $parts[1], 'text' => $parts[2]]; - } + $parts = explode(';', $item); + if (count($parts) === 3) { + $culture_list[] = ['zh' => $parts[0], 'en' => $parts[1], 'text' => $parts[2]]; + } } {/php}
    @@ -205,11 +227,11 @@ $global_raw = explode(',', $vo['description']); $global_list = []; foreach ($global_raw as $item) { - $parts = explode(';', $item, 3); - if (count($parts) >= 2) { - $desc = isset($parts[2]) ? str_replace(';', '
    ', $parts[2]) : ''; - $global_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'desc' => $desc]; - } + $parts = explode(';', $item, 3); + if (count($parts) >= 2) { + $desc = isset($parts[2]) ? str_replace(';', '
    ', $parts[2]) : ''; + $global_list[] = ['num' => $parts[0], 'unit' => $parts[1], 'desc' => $desc]; + } } $global_left = array_slice($global_list, 0, 3); $global_right = array_slice($global_list, 3); @@ -249,8 +271,10 @@
    {php}$member_idx = 0;{/php} - {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="50" mainField="id,url,title,sub_title,content,thumbnail" sort="sort asc" subField="" onlyData="2"} -
    + {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="50" + mainField="id,url,title,sub_title,content,thumbnail" sort="sort asc" subField="" onlyData="2"} +

    {$case_top.title}

    @@ -258,7 +282,8 @@ {$case_top.content|strip_tags}

    - Explore more + Explore more
    {php}$member_idx++;{/php} @@ -267,10 +292,11 @@
    {php}$member_idx = 0;{/php} - {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="50" mainField="id,title,sub_title,content,thumbnail" sort="sort asc" subField="" onlyData="2"} - {php}$member_idx++;{/php} @@ -289,16 +315,23 @@
      - {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="999" mainField="id,url,title,sub_title,content,thumbnail" sort="sort asc" subField="" onlyData="2"} + {hcTaglib:content cid="$vo.id" moduleId="1" name="contentList" item="case_top" limit="999" + mainField="id,url,title,sub_title,content,thumbnail" sort="sort asc" subField="" onlyData="2"}
    • {$case_top.title} - - - - - + + + + + View certificate
    @@ -336,17 +371,19 @@ {include file="components/mask"} -{include file="components/footer"} - + {include file="components/footer"} + - - - - - - - - + + + + + + + + diff --git a/public/themes/website/4/en/demo/solution2.html b/public/themes/website/4/en/demo/solution2.html index 4f3e11c..322e63c 100644 --- a/public/themes/website/4/en/demo/solution2.html +++ b/public/themes/website/4/en/demo/solution2.html @@ -12,41 +12,41 @@ $current_cate_id = $current_cate['id'] ?? 0; - - - - - + + + - - + + @@ -54,8 +54,8 @@ $current_cate_id = $current_cate['id'] ?? 0; - -{include file="components/header"} + + {include file="components/header"}
    {if !empty($sub_cates[0])} @@ -80,13 +80,13 @@ $current_cate_id = $current_cate['id'] ?? 0; $contents = getContentByCategory($sub_cates[1]['id'], $seller_id, 6, 'sort asc', ['thumbnail', 'category']); {/php} {volist name="contents" id="vo"} -
  • - -

    {$vo.title ?? ''}

    -

    {$vo.description ?? ''}

    -
  • +
  • + +

    {$vo.title ?? ''}

    +

    {$vo.description ?? ''}

    +
  • {/volist} @@ -95,7 +95,8 @@ $current_cate_id = $current_cate['id'] ?? 0;

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

    - {$sub_cates[2]['description'] ?? ''} + {$sub_cates[2]['description'] ?? ''}
    {/if} @@ -105,15 +106,23 @@ $current_cate_id = $current_cate['id'] ?? 0;

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

    @@ -128,11 +137,11 @@ $current_cate_id = $current_cate['id'] ?? 0;
    - {$vo.title ?? ''} + {$vo.title ?? ''}
    {/volist} @@ -206,15 +215,23 @@ $current_cate_id = $current_cate['id'] ?? 0;

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

    @@ -222,39 +239,51 @@ $current_cate_id = $current_cate['id'] ?? 0;
    - {php}$others = getOtherCategoryCategoryId($current_cate['id'],$seller_id,5);{/php} - {volist name="others" id="vo"} - - {/volist} -
    + {php}$others = getOtherCategoryCategoryId($current_cate['id'],$seller_id,5);{/php} + {volist name="others" id="vo"} + + {/volist} +
    @@ -265,17 +294,19 @@ $current_cate_id = $current_cate['id'] ?? 0; {include file="components/mask"} -{include file="components/footer"} - + {include file="components/footer"} + - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/public/themes/website/4/zh/demo/solution2.html b/public/themes/website/4/zh/demo/solution2.html index ebd36d5..f75416c 100644 --- a/public/themes/website/4/zh/demo/solution2.html +++ b/public/themes/website/4/zh/demo/solution2.html @@ -12,41 +12,41 @@ $current_cate_id = $current_cate['id'] ?? 0; - - - - - + + + - - + + @@ -54,8 +54,8 @@ $current_cate_id = $current_cate['id'] ?? 0; - -{include file="components/header"} + + {include file="components/header"}
    {if !empty($sub_cates[0])} @@ -80,13 +80,13 @@ $current_cate_id = $current_cate['id'] ?? 0; $contents = getContentByCategory($sub_cates[1]['id'], $seller_id, 6, 'sort asc', ['thumbnail', 'category']); {/php} {volist name="contents" id="vo"} -
  • - -

    {$vo.title ?? ''}

    -

    {$vo.description ?? ''}

    -
  • +
  • + +

    {$vo.title ?? ''}

    +

    {$vo.description ?? ''}

    +
  • {/volist} @@ -95,7 +95,8 @@ $current_cate_id = $current_cate['id'] ?? 0;

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

    - {$sub_cates[2]['description'] ?? ''} + {$sub_cates[2]['description'] ?? ''}
    {/if} @@ -105,15 +106,23 @@ $current_cate_id = $current_cate['id'] ?? 0;

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

    @@ -128,11 +137,11 @@ $current_cate_id = $current_cate['id'] ?? 0;

    {$vo.title ?? ''}

    {$vo.description ?? ''}

    - 探索更多 + 探索更多
    - {$vo.title ?? ''} + {$vo.title ?? ''}
    {/volist} @@ -205,15 +214,23 @@ $current_cate_id = $current_cate['id'] ?? 0;

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

    @@ -221,39 +238,51 @@ $current_cate_id = $current_cate['id'] ?? 0;
    - {php}$others = getOtherCategoryCategoryId($current_cate['id'],$seller_id,5);{/php} - {volist name="others" id="vo"} - - {/volist} -
    + {php}$others = getOtherCategoryCategoryId($current_cate['id'],$seller_id,5);{/php} + {volist name="others" id="vo"} + + {/volist} +
    @@ -264,17 +293,19 @@ $current_cate_id = $current_cate['id'] ?? 0; {include file="components/mask"} -{include file="components/footer"} - + {include file="components/footer"} + - - - - - - - - + + + + + + + + \ No newline at end of file