From 21bce32725f9a3c7650a211806ab5319ae462383 Mon Sep 17 00:00:00 2001 From: linbin <495561397@qq.com> Date: Fri, 5 Sep 2025 23:16:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E8=BF=B0:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=8C=BA=E5=9F=9F=E6=98=BE=E7=A4=BA=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除内容区域的标题显示,避免重复展示 - 重构updateContent函数,对不同菜单项直接使用iframe显示对应页面 - 为未指定的菜单项提供默认内容展示,保持界面一致性 --- 平台web/index.html | 82 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 62 insertions(+), 20 deletions(-) diff --git a/平台web/index.html b/平台web/index.html index f8df52f..efa87cc 100644 --- a/平台web/index.html +++ b/平台web/index.html @@ -363,6 +363,9 @@ function updateContent(title) { const contentBody = document.querySelector('.content-body'); + // 移除内容区域的标题显示 + document.querySelector('.content-header').style.display = 'none'; + // 如果是权限编辑或市场经营者创建,显示iframe if (title === '权限编辑') { contentBody.innerHTML = ` @@ -373,26 +376,65 @@ `; } else { - // 其他菜单项显示默认内容 - contentBody.innerHTML = ` -
您已选择"${title}"菜单项。在这里可以展示与该菜单项相关的详细内容。
-这是一个内容展示容器,您可以根据实际需求添加任何内容,包括文本、图片、表格等。
-此区域用于展示"${title}"相关的具体内容。
-您可以添加任何HTML内容,包括:
-您已选择"${title}"菜单项。在这里可以展示与该菜单项相关的详细内容。
+这是一个内容展示容器,您可以根据实际需求添加任何内容,包括文本、图片、表格等。
+此区域用于展示"${title}"相关的具体内容。
+您可以添加任何HTML内容,包括:
+