From ca5ac6d523490b77f4839434404c4da44e981dd9 Mon Sep 17 00:00:00 2001 From: liqian <735273025@qq.com> Date: Mon, 14 Apr 2025 14:04:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9pc=20nas=E5=B8=AE?= =?UTF-8?q?=E5=8A=A9=E6=96=87=E7=AB=A0=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/view/tops_nas/helper_detail.phtml | 836 +++++++++++--------- 1 file changed, 443 insertions(+), 393 deletions(-) diff --git a/app/index/view/tops_nas/helper_detail.phtml b/app/index/view/tops_nas/helper_detail.phtml index ebf21c1..2ce50d2 100644 --- a/app/index/view/tops_nas/helper_detail.phtml +++ b/app/index/view/tops_nas/helper_detail.phtml @@ -1,402 +1,452 @@ + - - - 帮助中心 - {include file='include/head-nas' /} - + + + 帮助中心 + {include file='include/head-nas' /} + + - - {include file='include/top-header-nas'/} -
- -
-
帮助中心 / 使用教程
- - - -
- -
- -
- -
- -
-
{$article.content|default=''}
-
- -
-
-

目录

-
    -
    -
    -
    -
    - {include file='include/bottom2023'/} - - + $('#dropdown').show().html(html); + } + }) + }, 300); + }) + // 内容 + // 清空标题列表 + $("#title-list ul").empty(); + // 提取 h1 标题 + var h1Titles = $("#rendered-content").find("h3"); + h1Titles.each(function(index) { + var title = $(this); + var titleText = title.text(); + var titleId = "title-" + index; + title.attr("id", titleId); + var listItem = $("
  • "); + var link = $("", { + href: "#" + titleId, + text: titleText + }); + listItem.append(link); + $("#title-list ul").append(listItem); + }); + }); + + + \ No newline at end of file