From 2cd4054a43ab81dc3c876de049b44bed2573d419 Mon Sep 17 00:00:00 2001 From: "zhangf@suq.cn" Date: Wed, 2 Sep 2026 15:55:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(faq):=20=E4=BF=AE=E5=A4=8DFAQ=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=9D=99=E6=80=81=E8=B5=84=E6=BA=90=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=92=8C=E5=8A=A8=E6=80=81=E5=86=85=E5=AE=B9=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正静态资源路径从相对路径改为绝对路径 /themes/dist_static/ - 实现FAQ标题和描述的动态渲染,替换硬编码内容为模板变量 - 将固定分类标签替换为动态循环生成的分类按钮 - 集成内容分页标签实现FAQ条目的动态加载 - 修正URL参数名称从tab改为cid以匹配后端逻辑 - 添加内容过滤器去除HTML标签以确保安全显示 --- public/themes/dist_static/static/js/faq.js | 4 +- public/themes/website/1/zh/demo/faq.html | 102 +++++------------------------ 2 files changed, 17 insertions(+), 89 deletions(-) diff --git a/public/themes/dist_static/static/js/faq.js b/public/themes/dist_static/static/js/faq.js index 102e60b..adecbff 100644 --- a/public/themes/dist_static/static/js/faq.js +++ b/public/themes/dist_static/static/js/faq.js @@ -26,13 +26,13 @@ function initTabKeywordsSearch() { const params = new URLSearchParams(); const keywords = $(this).find('[name="keywords"]').val().trim(); const tabId = getActiveTabId(); - if (tabId) params.set("tab", tabId); + if (tabId) params.set("cid", tabId); if (keywords) params.set("keywords", keywords); const query = params.toString(); window.location.href = query ? `${window.location.pathname}?${query}` : window.location.pathname; }); const searchParams = new URLSearchParams(window.location.search); - const tabParam = searchParams.get("tab"); + const tabParam = searchParams.get("cid"); const keywordsParam = searchParams.get("keywords"); if (keywordsParam) $("[data-tab-search] [name='keywords']").val(keywordsParam); if (tabParam) activateTabById(tabParam); diff --git a/public/themes/website/1/zh/demo/faq.html b/public/themes/website/1/zh/demo/faq.html index 7c0d4f0..2a67632 100644 --- a/public/themes/website/1/zh/demo/faq.html +++ b/public/themes/website/1/zh/demo/faq.html @@ -43,10 +43,10 @@ integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> - - - - + + + + @@ -57,16 +57,16 @@
-

常见问题

-

在这里,寻找想要的答案

+

{$current_cate.title}

+

{$current_cate.description}

- - - - + + {volist name="sub_cates" id="vo"} + + {/volist}
+ {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="10" item="vo"}

- 睿能科技成立于2007年,总部位于福建福州,是一家专注于工业自动化控制产品研发、生产、销售及半导体产品分销的高新技术企业。公司于2017年在上海证券交易所主板上市。经过近二十年的发展,睿能科技已从单一的针织横机电控系统供应商,转型为拥有全栈式技术架构的工业自动化控制产品供应商,业务覆盖全球,旗下拥有20余家子公司及8个海外办事处。 -

-
-
- -
- -
-

- 公司业务涵盖工业自动化控制产品与半导体产品分销两大板块,其中工业自动化聚焦控制与驱动技术研发,提供智能化产品与定制化解决方案,服务纺织、机床、3C、机器人、包装印刷等多个行业。 -

-
-
- -
- -
-

- 产品广泛应用于纺织缝制、机床与激光加工、3C电子制造、机器人、包装印刷、暖通、冶金、采矿、化工、能源电力、水务环保等领域,助力生产设备效能提升与数字化智能化升级。 -

-
-
- -
- -
-

- 集团旗下拥有20余家子公司、8个海外办事处,构建覆盖全球的服务网络,可快速响应并高效对接全球客户需求,提供本地化技术支持与售后服务。 -

-
-
- -
- -
-

- 可以。您可通过联系我们预约演示或到访展厅/客户现场观摩,了解产品实际运行效果与适配方案。也可先拨打客服热线 400-0898-188 咨询。 -

-
-
- -
- -
-

- 支持。我们可为不同客户提供灵活的商务合作方式,包括分期付款、融资租赁及招投标合作等。具体方案请与商务或销售顾问沟通确认。 + {$vo.content|strip_tags}

+ {/hcTaglib:contentPage}
+ {$hc_content|raw}