mirror of
https://github.com/PlayEdu/h5.git
synced 2025-06-07 19:35:38 +08:00
播放页面优化
This commit is contained in:
parent
9e4ac812ff
commit
c5b8cc24e6
@ -179,11 +179,11 @@ const CoursePlayPage = () => {
|
||||
window.player.seek(playRef.current);
|
||||
return;
|
||||
}
|
||||
exitFullscreen();
|
||||
window.player && window.player.destroy();
|
||||
setPlayingTime(0);
|
||||
setPlayendedStatus(true);
|
||||
playTimeUpdate(parseInt(window.player.video.currentTime), true);
|
||||
exitFullscreen();
|
||||
window.player && window.player.destroy();
|
||||
});
|
||||
setLoading(false);
|
||||
};
|
||||
@ -248,7 +248,9 @@ const CoursePlayPage = () => {
|
||||
{isLastpage && (
|
||||
<div
|
||||
className={styles["alert-button"]}
|
||||
onClick={() => navigate(`/course/${params.courseId}`)}
|
||||
onClick={() => {
|
||||
navigate(-1);
|
||||
}}
|
||||
>
|
||||
恭喜你学完最后一节
|
||||
</div>
|
||||
@ -257,7 +259,6 @@ const CoursePlayPage = () => {
|
||||
<div
|
||||
className={styles["alert-button"]}
|
||||
onClick={() => {
|
||||
window.player && window.player.destroy();
|
||||
setLastSeeValue({});
|
||||
setPlayendedStatus(false);
|
||||
goNextVideo();
|
||||
|
@ -87,6 +87,9 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-right: 34px;
|
||||
&:last-child {
|
||||
margin-right: 0px;
|
||||
}
|
||||
.time {
|
||||
height: 20px;
|
||||
font-size: 15px;
|
||||
|
@ -190,11 +190,6 @@ const MemberPage = () => {
|
||||
{studyTimeFormat(stats.today_learn_duration)[2] || 0}{" "}
|
||||
</strong>
|
||||
分
|
||||
<strong>
|
||||
{" "}
|
||||
{studyTimeFormat(stats.today_learn_duration)[3] || 0}{" "}
|
||||
</strong>
|
||||
秒
|
||||
</span>
|
||||
<span className={styles["tit"]}>今日学习</span>
|
||||
</div>
|
||||
@ -222,11 +217,6 @@ const MemberPage = () => {
|
||||
{studyTimeFormat(stats.learn_duration || 0)[2] || 0}{" "}
|
||||
</strong>
|
||||
分
|
||||
<strong>
|
||||
{" "}
|
||||
{studyTimeFormat(stats.learn_duration || 0)[3] || 0}{" "}
|
||||
</strong>
|
||||
秒
|
||||
</span>
|
||||
<span className={styles["tit"]}>累计学习</span>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user