- 修复6月17日单元小结归属问题,正确归入商业设计基础单元 - 添加单元海报功能,非直播状态显示单元海报图片 - 更新首页Dashboard开始上课和当日事项板块数据 - 实现课程数据与Dashboard数据自动同步 - 优化课程列表显示,包含完整100门课程数据 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
797 B
JavaScript
27 lines
797 B
JavaScript
import { useState } from "react";
|
|
import CoursesVideoPlayer from "@/components/CoursesVideoPlayer";
|
|
import CourseList from "@/components/CourseList";
|
|
import StageProgress from "@/components/StageProgress";
|
|
import { mockData } from "@/data/mockData";
|
|
import "./index.css";
|
|
|
|
const LivePage = () => {
|
|
const [selectedCourse, setSelectedCourse] = useState(null);
|
|
|
|
const handleCourseClick = (course) => {
|
|
setSelectedCourse(course);
|
|
};
|
|
|
|
return (
|
|
<div className="live-page">
|
|
<StageProgress />
|
|
<div className="live-page-content">
|
|
<CoursesVideoPlayer selectedCourse={selectedCourse} teacherData={mockData.teacherData} unitPosters={mockData.unitPosters} />
|
|
<CourseList onCourseClick={handleCourseClick} />
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default LivePage;
|