From 40d5d28cb69ca09681864ccc60dedaa3d740abe3 Mon Sep 17 00:00:00 2001 From: ditiqi Date: Mon, 24 Feb 2025 09:33:04 +0800 Subject: [PATCH] asdasd --- .../course/detail/CourseDetailDisplayArea.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx b/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx index f6f4913..1a6a7b8 100755 --- a/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx +++ b/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx @@ -17,7 +17,7 @@ import { Skeleton } from "antd"; export const CourseDetailDisplayArea: React.FC = () => { // 创建滚动动画效果 - const { course, isLoading, lecture, lectureIsLoading } = + const { course, isLoading, lecture, lectureIsLoading, selectedLectureId } = useContext(CourseDetailContext); const { scrollY } = useScroll(); const videoOpacity = useTransform(scrollY, [0, 200], [1, 0.8]); @@ -27,6 +27,15 @@ export const CourseDetailDisplayArea: React.FC = () => { {lectureIsLoading && ( )} + {!selectedLectureId && ( + <> +
+
+ {"123"} +
+
+ + )} {!lectureIsLoading && lecture?.meta?.type === LectureType.VIDEO && (
{
-
{" "} +
)} {!lectureIsLoading &&