diff --git a/src/pages/course/compenents/hour.tsx b/src/pages/course/compenents/hour.tsx index 842ac77..9af7790 100644 --- a/src/pages/course/compenents/hour.tsx +++ b/src/pages/course/compenents/hour.tsx @@ -72,6 +72,7 @@ export const HourCompenent: React.FC = ({ id={currentId} title={currentTitle} open={visible} + progress={progress} isLastpage={isLastpage} lastSeeDuration={lastSeeDuration} onCancel={() => { diff --git a/src/pages/course/compenents/video.tsx b/src/pages/course/compenents/video.tsx index 056a455..9f37261 100644 --- a/src/pages/course/compenents/video.tsx +++ b/src/pages/course/compenents/video.tsx @@ -13,6 +13,7 @@ interface PropInterface { open: boolean; isLastpage: boolean; lastSeeDuration: number; + progress: number; onCancel: () => void; goNextVideo: () => void; } @@ -24,6 +25,7 @@ export const VideoModel: React.FC = ({ open, isLastpage, lastSeeDuration, + progress, onCancel, goNextVideo, }) => { @@ -38,7 +40,7 @@ export const VideoModel: React.FC = ({ useEffect(() => { let params = null; if (open) { - if (lastSeeDuration > 0) { + if (lastSeeDuration > 0 && progress < 100) { params = { time: 5, pos: lastSeeDuration,