From db865f0436708bad1f2b4a2db5d0209091a7eff0 Mon Sep 17 00:00:00 2001 From: linbin <495561397@qq.com> Date: Sat, 6 Sep 2025 00:14:57 +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=E5=92=8C=E9=A1=B5=E9=9D=A2=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改内容区域样式:移除内边距和滚动条设置,使页面布局更加紧凑和统一 - 调整iframe高度:从calc(100vh - 140px)改为100vh,充分利用视窗高度 - 恢复内容区域标题显示:将.content-header元素的display属性从none改为block - 更新首页链接:将首页的URL从'index.html'更新为'首页.html'以匹配实际文件名 - 优化默认内容显示:为未指定菜单项的默认内容添加标题显示功能 --- 平台端web/index.html | 15 ++--- 平台端web/首页.html | 130 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+), 7 deletions(-) create mode 100644 平台端web/首页.html diff --git a/平台端web/index.html b/平台端web/index.html index b4605b4..820bfb3 100644 --- a/平台端web/index.html +++ b/平台端web/index.html @@ -106,8 +106,8 @@ /* 内容区域样式 */ .content { flex: 1; - padding: 20px; - overflow-y: auto; + padding: 0; + overflow-y: hidden; background-color: #fff; } @@ -147,7 +147,7 @@ /* iframe样式 */ .content-iframe { width: 100%; - height: calc(100vh - 140px); + height: 100vh; border: none; border-radius: 5px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); @@ -367,8 +367,8 @@ function updateContent(title) { const contentBody = document.querySelector('.content-body'); - // 移除内容区域的标题显示 - document.querySelector('.content-header').style.display = 'none'; + // 恢复内容区域的标题显示 + document.querySelector('.content-header').style.display = 'block'; // 如果是权限编辑或市场经营者创建,显示iframe if (title === '权限编辑') { @@ -384,7 +384,7 @@ let url = ''; switch(title) { case '首页': - url = 'index.html'; + url = '首页.html'; break; case '新增产品': url = '产品管理/新增产品.html'; @@ -414,9 +414,10 @@ url = '权限管理/产品分析.html'; break; default: - // 对于未指定的菜单项,显示默认内容(不包含标题) + // 对于未指定的菜单项,显示默认内容(包含标题) contentBody.innerHTML = `
您已选择"${title}"菜单项。在这里可以展示与该菜单项相关的详细内容。
这是一个内容展示容器,您可以根据实际需求添加任何内容,包括文本、图片、表格等。
这是一个功能强大且易于使用的系统平台,为您提供全方位的服务和支持。
+集中管理用户权限,灵活分配角色和访问控制,确保系统安全可靠。
+完整的产品信息管理功能,支持产品添加、编辑、删除等操作。
+方便的用户信息维护,包括用户列表查看、权限设置等功能。
+