课程学习记录显示优化

This commit is contained in:
禺狨 2023-03-27 16:05:04 +08:00
parent 0b7a53b940
commit b45c7932ce

View File

@ -117,11 +117,13 @@ const IndexPage = () => {
<strong> {stats.required_finished_hour_count} </strong>
<span>/ {stats.required_hour_count}</span>
</div>
{stats.nun_required_hour_count > 0 && (
<div className={styles["info-item"]}>
<span></span>
<strong> {stats.nun_required_finished_hour_count} </strong>
<span>/ {stats.nun_required_hour_count}</span>
</div>
)}
</div>
</div>
<div className={styles["top-item"]}>
@ -220,7 +222,7 @@ const IndexPage = () => {
title={item.title}
thumb={item.thumb}
isRequired={item.is_required}
progress={learnCourseRecords[item.id].progress}
progress={learnCourseRecords[item.id].progress / 100}
></CoursesModel>
)}
{!learnCourseRecords[item.id] && (