From b5177833c3f62175fcb643a8b851e5ffe9d86213 Mon Sep 17 00:00:00 2001 From: mtvpls Date: Sun, 8 Feb 2026 14:40:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=9C=BA=E5=8F=AF=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8D=B3=E5=B0=86=E4=B8=8A=E6=98=A0=E5=A4=A9=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/VideoCard.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/components/VideoCard.tsx b/src/components/VideoCard.tsx index 524cf2d..797ebab 100644 --- a/src/components/VideoCard.tsx +++ b/src/components/VideoCard.tsx @@ -114,6 +114,7 @@ const VideoCard = forwardRef(function VideoCard const [aiDefaultMessageWithVideo, setAiDefaultMessageWithVideo] = useState(''); const [showDetailPanel, setShowDetailPanel] = useState(false); const [showImageViewer, setShowImageViewer] = useState(false); + const [showUpcomingInfo, setShowUpcomingInfo] = useState(false); // 控制即将上映倒计时的显示 // 检查AI功能是否启用 useEffect(() => { @@ -276,8 +277,13 @@ const VideoCard = forwardRef(function VideoCard ); const handleClick = useCallback(() => { - // 即将上映的电影不跳转 + // 即将上映的电影:单击显示上映倒计时提示,不跳转 if (isUpcoming) { + setShowUpcomingInfo(true); + // 2秒后自动隐藏 + setTimeout(() => { + setShowUpcomingInfo(false); + }, 2000); return; } @@ -659,7 +665,9 @@ const VideoCard = forwardRef(function VideoCard return ( <>
(function VideoCard {isUpcoming && daysUntilRelease !== null ? (