迁移右侧面板事件绑定

This commit is contained in:
2026-04-25 03:42:54 +08:00
parent 64a1e5d769
commit 10e9835530
3 changed files with 59 additions and 5 deletions
@@ -8,8 +8,8 @@
<div class="chat-right">
{{-- Tab 标题栏 --}}
<div class="right-tabs">
<button class="tab-btn active" id="tab-users" onclick="switchTab('users')">名单</button>
<button class="tab-btn" id="tab-rooms" onclick="switchTab('rooms')">房间</button>
<button class="tab-btn active" id="tab-users" data-chat-right-tab="users">名单</button>
<button class="tab-btn" id="tab-rooms" data-chat-right-tab="rooms">房间</button>
</div>
{{-- 用户列表面板 --}}
@@ -20,7 +20,7 @@
<div style="color:#cc6600; font-size:11px;">人气:{{ $room->visit_num ?? 0 }}</div>
<div style="font-size:11px; color:#999; margin-top:2px;">
<span id="online-count-bottom">0</span>
<a href="#" onclick="renderUserList(); return false;"
<a href="#" data-chat-user-list-refresh
style="color:#c00; font-size:10px; margin-left:4px;">刷新</a>
</div>
</div>
@@ -29,7 +29,7 @@
<div style="padding:3px 4px; border-bottom:1px solid #cde; background:#f8fbff; font-size:11px;">
<div style="display:flex; align-items:center; gap:4px; margin-bottom:3px;">
<span style="color:#666; flex-shrink:0;">排序:</span>
<select id="user-sort-select" onchange="renderUserList()"
<select id="user-sort-select"
style="flex:1; font-size:11px; padding:1px; border:1px solid #aac; border-radius:2px;">
<option value="default">默认</option>
<option value="name">按名称</option>
@@ -37,7 +37,7 @@
</select>
</div>
<div style="display:flex; align-items:center; gap:2px;">
<input type="text" id="user-search-input" placeholder="搜索用户" oninput="scheduleFilterUserList()"
<input type="text" id="user-search-input" placeholder="搜索用户"
style="width:100%; font-size:11px; padding:2px 4px; border:1px solid #aac; border-radius:2px; box-sizing:border-box;">
</div>
</div>