From 29779b5011be0c4063b56f7bb454c1c3bba5e9f9 Mon Sep 17 00:00:00 2001 From: peijunlei Date: Tue, 8 Sep 2026 17:22:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(about-history):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=85=B3=E4=BA=8E=E5=8E=86=E5=8F=B2=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=92=8C=E9=93=BE=E6=8E=A5=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8A=A8=E6=80=81=E5=86=85=E5=AE=B9=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/ui_ids.php | 2 +- public/themes/website/1/en/demo/about-history.html | 119 +++++++++++++++++++++ public/themes/website/1/en/demo/about.html | 7 +- 3 files changed, 126 insertions(+), 2 deletions(-) create mode 100644 public/themes/website/1/en/demo/about-history.html diff --git a/config/ui_ids.php b/config/ui_ids.php index 1951e9e..f8f3751 100644 --- a/config/ui_ids.php +++ b/config/ui_ids.php @@ -33,7 +33,7 @@ return [ 'about' => ['zh' => 371, 'en' => 740], // 关于睿能 'about_intro' => ['zh' => 372, 'en' => 741], // 公司简介 'about_history' => ['zh' => 373, 'en' => 742], // 发展历史 - 'about_history_page' => ['zh' => 759, 'en' => 0], // 发展历程详情页(栏目路由) + 'about_history_page' => ['zh' => 759, 'en' => 760], // 发展历程详情页(栏目路由) 'about_culture' => ['zh' => 374, 'en' => 743], // 企业文化 'about_global' => ['zh' => 375, 'en' => 744], // 全球布局 'about_members' => ['zh' => 376, 'en' => 745], // 集团成员 diff --git a/public/themes/website/1/en/demo/about-history.html b/public/themes/website/1/en/demo/about-history.html new file mode 100644 index 0000000..ab9ccb2 --- /dev/null +++ b/public/themes/website/1/en/demo/about-history.html @@ -0,0 +1,119 @@ + + + + + + + {$current_cate.seo_title} + + + + + + + + + + + + + + + + + + + +{include file="components/header"} + +
+ {php} + $ui_about_history = uiId('about_history'); + $seller_id = (int)($seller_id ?? 1); + $history_items = getContentByCategory($ui_about_history, $seller_id, 9999, 'sort desc', []); + if (!is_array($history_items)) { + $history_items = []; + } + usort($history_items, function ($a, $b) { + return (int)($b['sub_title'] ?? 0) - (int)($a['sub_title'] ?? 0); + }); + foreach ($history_items as &$history_item) { + if (!empty($history_item['content'])) { + $history_item['content'] = htmlspecialchars_decode($history_item['content']); + } + } + unset($history_item); + {/php} +
+
+ + +
+ {volist name="history_items" id="item"} + {php}$year = trim((string)($item['sub_title'] ?? ''));{/php} + {if $year !== ''} +
+
+ {$item.content|raw} +
+
+ {/if} + {/volist} +
+
+
+
+ + {include file="components/mask"} + +{include file="components/footer"} + + + + + + + + + + + diff --git a/public/themes/website/1/en/demo/about.html b/public/themes/website/1/en/demo/about.html index 4112a6f..a5bfcc4 100644 --- a/public/themes/website/1/en/demo/about.html +++ b/public/themes/website/1/en/demo/about.html @@ -135,7 +135,12 @@

{$case_top.title}

- + + Learn more + +