重构:双击用户名统一走 openUserCard 全局函数
- 新增全局 openUserCard() 函数,所有双击用户名入口统一调用 - 聊天消息区 clickableUser 的 ondblclick 改为 openUserCard - 右侧用户列表双击简化为调用 openUserCard - 移除输入栏底部的管理操作下拉框和执行按钮 - 管理操作统一通过双击用户名 → 名片弹窗执行
This commit is contained in:
@@ -58,33 +58,6 @@
|
||||
<option value="1">上下分</option>
|
||||
</select>
|
||||
</label>
|
||||
{{-- 管理操作(根据权限显示) --}}
|
||||
@if ($user->user_level >= $levelKick || $room->master == $user->username)
|
||||
<select id="admin-action-select"
|
||||
style="font-size: 11px; padding: 1px 2px; border: 1px solid #8ab; border-radius: 2px; color: #c00;">
|
||||
<option value="">管理操作 ▾</option>
|
||||
@if ($user->user_level >= $levelWarn || $room->master == $user->username)
|
||||
<option value="warn">⚠️ 警告</option>
|
||||
@endif
|
||||
@if ($user->user_level >= $levelKick || $room->master == $user->username)
|
||||
<option value="kick">👢 踢出房间</option>
|
||||
@endif
|
||||
@if ($user->user_level >= $levelMute || $room->master == $user->username)
|
||||
<option value="mute">🔇 禁言</option>
|
||||
@endif
|
||||
@if ($user->user_level >= $levelBan)
|
||||
<option value="ban">🚫 封号</option>
|
||||
@endif
|
||||
@if ($user->user_level >= $levelBanip)
|
||||
<option value="banip">🔒 封IP</option>
|
||||
@endif
|
||||
@if ($user->user_level >= $levelKick || $room->master == $user->username)
|
||||
<option value="whispers">🔍 查看私聊</option>
|
||||
@endif
|
||||
</select>
|
||||
<button type="button" onclick="executeAdminAction()"
|
||||
style="font-size: 11px; padding: 1px 6px; background: #c44; color: #fff; border: none; border-radius: 2px; cursor: pointer;">执行</button>
|
||||
@endif
|
||||
|
||||
@if (
|
||||
$user->user_level >= (int) \App\Models\Sysparam::getValue('level_announcement', '10') ||
|
||||
|
||||
Reference in New Issue
Block a user