From 519907de2ad55fb1c52376ef4015fc7d3b025411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Fri, 31 Mar 2023 09:40:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=92=AD=E6=94=BE=E5=B7=B2?= =?UTF-8?q?=E5=AD=A6=E5=AE=8C=E4=B8=8D=E6=98=BE=E7=A4=BA=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/compenents/hour.tsx | 1 + src/pages/course/compenents/video.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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,