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 ? (