From 75e55ffa97f4b42fb6e4cc1bc0bdf01448a92fc2 Mon Sep 17 00:00:00 2001 From: WuYongJie Date: Thu, 28 May 2026 18:39:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=95=9B=E8=81=8A=E5=A4=A9=E5=8A=A9?= =?UTF-8?q?=E6=89=8B=E5=B7=A5=E4=BD=9C=E5=8F=B0=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AIChatWidget.tsx | 143 ++++++++---------------- docs/商业化地基排查问题清单_20260524.md | 3 +- 2 files changed, 47 insertions(+), 99 deletions(-) diff --git a/components/AIChatWidget.tsx b/components/AIChatWidget.tsx index ace8d62..9f7db06 100644 --- a/components/AIChatWidget.tsx +++ b/components/AIChatWidget.tsx @@ -15,56 +15,16 @@ import { useState, useEffect, useRef } from 'react' import { useSession } from 'next-auth/react' import Image from 'next/image' -import { useThemeStyles, cn } from '@/lib/ui-styles' - -// 添加动画样式 -const shimmerStyle = ` - @keyframes shimmer { - 0% { background-position: -200% 0; } - 100% { background-position: 200% 0; } - } - - @keyframes breathe { - 0%, 100% { - filter: blur(15px) brightness(0.7); - transform: scale(1); - } - 50% { - filter: blur(12px) brightness(0.8); - transform: scale(1.02); - } - } -` +import { cn } from '@/lib/ui-styles' // 图片加载占位符组件 const ImageLoadingPlaceholder = () => { return ( -
- {/* 动态模糊背景 */} -
-
-
- - {/* 中心图标 */} +
-
- {/* 旋转的光圈 */} -
- {/* 中心图标 */} -
- - - -
-
-

正在生成图片...

-

AI正在为您创作中

+
+

图片处理中

@@ -83,7 +43,6 @@ interface Message { } export default function AIChatWidget() { - const styles = useThemeStyles() const { data: session } = useSession() const [isOpen, setIsOpen] = useState(false) const [messages, setMessages] = useState([]) @@ -405,41 +364,39 @@ export default function AIChatWidget() { return (
- {/* AI聊天窗口 - 苹果风格 */} + {/* AI聊天窗口 */} {isOpen && ( <> -