From 695a2a22a41ce138388e885bdc24dba6daf35dc3 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Fri, 21 Mar 2025 18:23:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E5=85=A5=E5=8A=9F=E8=83=BD=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/js/index.js | 13 -- view/templates/include/footer.html | 4 + view/templates/include/header.html | 31 +++++ view/templates/index/user_list.html | 36 +---- view/templates/weibo/home.html | 267 +++++++++++++++++------------------- 5 files changed, 163 insertions(+), 188 deletions(-) create mode 100644 view/templates/include/footer.html create mode 100644 view/templates/include/header.html diff --git a/view/js/index.js b/view/js/index.js index 9ab1fa9..48d2d55 100644 --- a/view/js/index.js +++ b/view/js/index.js @@ -337,19 +337,6 @@ $(document).ready(function () { } }); - $('.dropdown-toggle').click(function () { - const dropdownPanel = document.querySelector('.dropdown-panel'); - const icon = document.querySelector('.icon'); - // 切换面板的显示/隐藏 - if (dropdownPanel.style.display === 'block') { - dropdownPanel.style.display = 'none'; - icon.classList.remove('rotate'); // 移除旋转效果 - } else { - dropdownPanel.style.display = 'block'; - icon.classList.add('rotate'); // 添加旋转效果 - } - }) - // 点击页面其他区域关闭面板 document.addEventListener('click', (event) => { const dropdown = document.querySelector('.dropdown'); diff --git a/view/templates/include/footer.html b/view/templates/include/footer.html new file mode 100644 index 0000000..67a1db4 --- /dev/null +++ b/view/templates/include/footer.html @@ -0,0 +1,4 @@ +
+

Copyright ©2012-2025 .

+

All Rights Reserved 底部随便写的

+
\ No newline at end of file diff --git a/view/templates/include/header.html b/view/templates/include/header.html new file mode 100644 index 0000000..95a29f9 --- /dev/null +++ b/view/templates/include/header.html @@ -0,0 +1,31 @@ +
+ +
+ + +
+
+{literal} + +{/literal} \ No newline at end of file diff --git a/view/templates/index/user_list.html b/view/templates/index/user_list.html index 3614e25..d114313 100644 --- a/view/templates/index/user_list.html +++ b/view/templates/index/user_list.html @@ -55,21 +55,8 @@ {/literal}
-
- -
- - -
-
+ {include file="include/header.html"} +
@@ -115,27 +102,12 @@
审核员列表
{/if}
-
-

Copyright ©2012-2025 .

-

All Rights Reserved 底部随便写的

-
+ + {include file="include/footer.html"}
{literal} + {/literal} + +
+ + - - {literal} - - {/literal} - -
- - - -
-

Copyright ©2012-2025 .

-

All Rights Reserved 底部随便写的

-
+ {include file="include/footer.html"}