mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-23 07:22:47 +08:00
课程学习记录显示优化
This commit is contained in:
parent
0b7a53b940
commit
b45c7932ce
@ -117,11 +117,13 @@ const IndexPage = () => {
|
|||||||
<strong> {stats.required_finished_hour_count} </strong>
|
<strong> {stats.required_finished_hour_count} </strong>
|
||||||
<span>/ {stats.required_hour_count}</span>
|
<span>/ {stats.required_hour_count}</span>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles["info-item"]}>
|
{stats.nun_required_hour_count > 0 && (
|
||||||
<span>选修课:已完成</span>
|
<div className={styles["info-item"]}>
|
||||||
<strong> {stats.nun_required_finished_hour_count} </strong>
|
<span>选修课:已完成</span>
|
||||||
<span>/ {stats.nun_required_hour_count}</span>
|
<strong> {stats.nun_required_finished_hour_count} </strong>
|
||||||
</div>
|
<span>/ {stats.nun_required_hour_count}</span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles["top-item"]}>
|
<div className={styles["top-item"]}>
|
||||||
@ -220,7 +222,7 @@ const IndexPage = () => {
|
|||||||
title={item.title}
|
title={item.title}
|
||||||
thumb={item.thumb}
|
thumb={item.thumb}
|
||||||
isRequired={item.is_required}
|
isRequired={item.is_required}
|
||||||
progress={learnCourseRecords[item.id].progress}
|
progress={learnCourseRecords[item.id].progress / 100}
|
||||||
></CoursesModel>
|
></CoursesModel>
|
||||||
)}
|
)}
|
||||||
{!learnCourseRecords[item.id] && (
|
{!learnCourseRecords[item.id] && (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user