mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-07-19 16:09:42 +08:00
视频播放已学完不显示跳转进度条
This commit is contained in:
parent
c2a26706c8
commit
519907de2a
@ -72,6 +72,7 @@ export const HourCompenent: React.FC<PropInterface> = ({
|
||||
id={currentId}
|
||||
title={currentTitle}
|
||||
open={visible}
|
||||
progress={progress}
|
||||
isLastpage={isLastpage}
|
||||
lastSeeDuration={lastSeeDuration}
|
||||
onCancel={() => {
|
||||
|
@ -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<PropInterface> = ({
|
||||
open,
|
||||
isLastpage,
|
||||
lastSeeDuration,
|
||||
progress,
|
||||
onCancel,
|
||||
goNextVideo,
|
||||
}) => {
|
||||
@ -38,7 +40,7 @@ export const VideoModel: React.FC<PropInterface> = ({
|
||||
useEffect(() => {
|
||||
let params = null;
|
||||
if (open) {
|
||||
if (lastSeeDuration > 0) {
|
||||
if (lastSeeDuration > 0 && progress < 100) {
|
||||
params = {
|
||||
time: 5,
|
||||
pos: lastSeeDuration,
|
||||
|
Loading…
x
Reference in New Issue
Block a user