diff --git a/src/pages/course/compenents/video.tsx b/src/pages/course/compenents/video.tsx index 1030c92..611e58f 100644 --- a/src/pages/course/compenents/video.tsx +++ b/src/pages/course/compenents/video.tsx @@ -22,6 +22,7 @@ export const VideoModel: React.FC = ({ }) => { const [playUrl, setPlayUrl] = useState(""); const [playDuration, setPlayDuration] = useState(0); + const [playendedStatus,setPlayendedStatus]= useState(false); const myRef = useRef(0); useEffect(() => { diff --git a/src/pages/course/index.tsx b/src/pages/course/index.tsx index 1cebebc..3dec3f7 100644 --- a/src/pages/course/index.tsx +++ b/src/pages/course/index.tsx @@ -5,6 +5,7 @@ import { useParams } from "react-router-dom"; import { course as Course } from "../../api/index"; import mediaIcon from "../../assets/images/commen/icon-medal.png"; import { HourCompenent } from "./compenents/hour"; +import { Empty } from "../../compenents"; const CoursePage = () => { const params = useParams(); @@ -112,9 +113,7 @@ const CoursePage = () => { )}
- {chapters.length === 0 && JSON.stringify(hours) === "{}" && ( -
暂无课时
- )} + {chapters.length === 0 && JSON.stringify(hours) === "{}" && } {chapters.length === 0 && JSON.stringify(hours) !== "{}" && (
{hours[0].map((item: any) => ( diff --git a/src/pages/latest-learn/index.module.scss b/src/pages/latest-learn/index.module.scss index 3bf1cfb..9b974b5 100644 --- a/src/pages/latest-learn/index.module.scss +++ b/src/pages/latest-learn/index.module.scss @@ -19,7 +19,7 @@ transition: all 0.3s; cursor: pointer; &:hover { - border: none; + border: 2px solid #f6f6f6; box-shadow: 0px 4px 16px 8px rgba(0, 0, 0, 0.04); transition: all 0.3s; transform: translateY(-5px); diff --git a/src/pages/latest-learn/index.tsx b/src/pages/latest-learn/index.tsx index 719d339..6f3344f 100644 --- a/src/pages/latest-learn/index.tsx +++ b/src/pages/latest-learn/index.tsx @@ -102,7 +102,11 @@ const LatestLearnPage = () => { )} {!item.record && ( <> -
+ {item.last_learn_hour && ( +
+ 上次学到:{item.last_learn_hour.title} +
+ )}