From 0bda461f870fa3fa831958e9a6fd8fe1eaafd6c7 Mon Sep 17 00:00:00 2001 From: "zhangf@suq.cn" Date: Wed, 2 Sep 2026 16:57:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(video):=20=E6=9B=B4=E6=96=B0=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E9=A1=B5=E9=9D=A2=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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改静态资源路径从相对路径改为主题分发路径 - 将硬编码的视频标题和描述替换为动态模板变量 - 实现视频分类筛选功能的动态渲染 - 使用标签库动态加载视频内容列表 - 更新搜索参数名称从tab改为cid以匹配后端接口 - 移除静态视频卡片数据,改用动态内容填充 --- public/themes/dist_static/static/js/video.js | 4 +- public/themes/website/1/zh/demo/video.html | 182 +++------------------------ 2 files changed, 20 insertions(+), 166 deletions(-) diff --git a/public/themes/dist_static/static/js/video.js b/public/themes/dist_static/static/js/video.js index 58b5d7c..892d555 100644 --- a/public/themes/dist_static/static/js/video.js +++ b/public/themes/dist_static/static/js/video.js @@ -105,13 +105,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/video.html b/public/themes/website/1/zh/demo/video.html index 3c32781..ddd047e 100644 --- a/public/themes/website/1/zh/demo/video.html +++ b/public/themes/website/1/zh/demo/video.html @@ -43,10 +43,10 @@ integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> - - - - + + + + @@ -57,8 +57,8 @@
-

视频教程

-

提供相关视频进行培训

+

{$current_cate.title}

+

{$current_cate.description}

@@ -70,14 +70,10 @@
- - - - - - - - - - - - -
- - + {/hcTaglib:contentPage} + {$hc_content|raw}