Browse Source

Merge pull request '管理员列表' (#9) from wpd_loginout into master

Reviewed-on: #9
pull/10/head
pengda 2 months ago
parent
commit
ec929a587d
  1. 13
      view/templates/index/user_list.html

13
view/templates/index/user_list.html

@ -123,6 +123,19 @@
</body>
{literal}
<script>
$('.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'); // 添加旋转效果
}
})
$('.change-status').click(function (){
var id = $(this).data('id');
var status = $(this).hasClass('button-danger') ? 0 : 1;

Loading…
Cancel
Save