From 5722d5be253435a101d306f8a1d67f7e4d6ac2ac Mon Sep 17 00:00:00 2001 From: lkddi Date: Thu, 26 Feb 2026 22:34:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=85=AC=E5=91=8A/=E4=BC=A0=E9=9F=B3=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E4=BB=A5=E5=A4=A7=E5=AD=97=E9=86=92=E7=9B=AE=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 红色渐变边框背景、14px大字、阴影效果 - 钓鱼播报/AI小助手等保持普通样式 --- resources/views/chat/partials/scripts.blade.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 = `
${msg.content}
`; + } else { + // 其他系统用户(钓鱼播报、AI小助手等):普通样式 + html = + `${headImg}${msg.from_user}:${msg.content}`; + } } else if (msg.is_secret) { // 悄悄话样式(原版:紫色斜体) html =