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