From 74c4a6f11c5955417ddc1188fd4139b7db1724ed Mon Sep 17 00:00:00 2001 From: lkddi Date: Fri, 27 Feb 2026 00:24:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=EF=BC=9A=E5=B0=86=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E5=BC=B9=E7=AA=97=E5=92=8C=E8=AE=BE=E7=BD=AE=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E8=BF=81=E7=A7=BB=E5=88=B0=20toolbar.blade.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 头像选择弹窗、个人设置弹窗、savePassword/saveSettings JS 移入 toolbar - frame.blade.php 从 298 行减至约 100 行,只保留框架结构 - 按钮和弹窗集中在同一文件,职责清晰 --- resources/views/chat/frame.blade.php | 196 ---------------- .../views/chat/partials/toolbar.blade.php | 209 +++++++++++++++++- 2 files changed, 207 insertions(+), 198 deletions(-) diff --git a/resources/views/chat/frame.blade.php b/resources/views/chat/frame.blade.php index 749d2df..bb449f7 100644 --- a/resources/views/chat/frame.blade.php +++ b/resources/views/chat/frame.blade.php @@ -95,202 +95,6 @@ @include('chat.partials.user-actions') @include('chat.partials.scripts') - {{-- ═══════════ 头像选择弹窗 ═══════════ --}} - - - {{-- ═══════════ 个人设置弹窗 ═══════════ --}} - - - diff --git a/resources/views/chat/partials/toolbar.blade.php b/resources/views/chat/partials/toolbar.blade.php index 52bce15..8321d63 100644 --- a/resources/views/chat/partials/toolbar.blade.php +++ b/resources/views/chat/partials/toolbar.blade.php @@ -1,10 +1,18 @@ {{-- - 文件功能:聊天室竖向工具条(中间导航栏) - 从 frame.blade.php 拆分,便于独立维护 + 文件功能:聊天室竖向工具条(中间导航栏)+ 关联弹窗 + + 包含: + 1. 工具条按钮(管理、商店、存点、头像、设置等) + 2. 头像选择弹窗 + 3. 个人设置弹窗(密码、资料、密保) + 4. 对应的 JS 操作函数 依赖变量:$user, $superLevel, $room + @author ChatRoom Laravel + @version 1.0.0 --}} +{{-- ═══════════ 竖向工具条按钮 ═══════════ --}}
@if ($user->user_level >= $superLevel)
@@ -32,3 +40,200 @@
离开
+ +{{-- ═══════════ 头像选择弹窗 ═══════════ --}} + + +{{-- ═══════════ 个人设置弹窗 ═══════════ --}} + + +{{-- ═══════════ 工具条相关 JS 函数 ═══════════ --}} +