diff --git a/resources/views/chat/partials/scripts.blade.php b/resources/views/chat/partials/scripts.blade.php index 49e716b..dba4289 100644 --- a/resources/views/chat/partials/scripts.blade.php +++ b/resources/views/chat/partials/scripts.blade.php @@ -281,10 +281,18 @@ let html = ''; - // 系统用户消息直接显示为公告(不显示「对大家说:」) + // 系统用户消息以醒目公告样式显示 if (systemUsers.includes(msg.from_user)) { - html = - `${headImg}${msg.from_user}:${msg.content}`; + if (msg.from_user === '系统公告' || msg.from_user === '系统传音') { + // 管理员公告/系统传音:大字醒目样式 + div.style.cssText = + 'background: linear-gradient(135deg, #fef2f2, #fff1f2); border: 2px solid #ef4444; border-radius: 6px; padding: 8px 12px; margin: 4px 0; box-shadow: 0 2px 4px rgba(239,68,68,0.15);'; + html = `