diff --git a/src/components/video/video.tsx b/src/components/video/video.tsx index 9924471..e324452 100644 --- a/src/components/video/video.tsx +++ b/src/components/video/video.tsx @@ -45,12 +45,10 @@ const HVideo: FC = (opt: HVideoOptions) => { opt.breakpoint.forEach(d => { if (time < d + deviation && time > d - deviation) { video?.pause() - video?.seek(d - deviation) if (process.env.TARO_ENV === 'h5') { try { document?.exitFullscreen().then() - } catch (e) { - } + } catch (e) {} } video?.exitFullScreen() opt.onBreakpoint(d) diff --git a/src/pages/business/videoInfo/components/catalogue.tsx b/src/pages/business/videoInfo/components/catalogue.tsx index 601d885..fd8df74 100644 --- a/src/pages/business/videoInfo/components/catalogue.tsx +++ b/src/pages/business/videoInfo/components/catalogue.tsx @@ -175,10 +175,9 @@ const Catalogue: FC = ({data, setHors, id, playId}) => { { - playing ? {JSON.stringify(playing)}暂停 - : {JSON.stringify(playing)}立即学习 + playing ? 暂停 + : 立即学习 } - setShow(true)}>... diff --git a/src/pages/business/videoInfo/components/course.tsx b/src/pages/business/videoInfo/components/course.tsx index b001118..b8df4c7 100644 --- a/src/pages/business/videoInfo/components/course.tsx +++ b/src/pages/business/videoInfo/components/course.tsx @@ -129,24 +129,22 @@ const Course: FC = ({id, courseId, preview, curEnd}) => { setTime={videoSeek} /> - + {formatMinute(time)}考题 - {examAll?.[time]?.slice(0, 1)?.map((d) => - - {d.question_type === 2 && - setRecord([isAnswer])} - />} - - )} + { + examAll?.[time]?.slice(0, 1)?.map((d) => + + {d.question_type === 2 && + setRecord([isAnswer])} + />} + ) + }