diff --git a/web/src/pages/course/list/index.tsx b/web/src/pages/course/list/index.tsx index 01a507f..e6cf72c 100644 --- a/web/src/pages/course/list/index.tsx +++ b/web/src/pages/course/list/index.tsx @@ -99,7 +99,11 @@ const CardList = () => { JSON.stringify(last_data)!=='{}'? <> - 学习进度: + 学习进度: + percent === 100 ? '100%' : `${percent}%`} + /> + 上次学习:{last_data ? last_data.course_name : '--'} @@ -169,7 +173,9 @@ const CardList = () => {
{item?.course_name}
{item?.course_hours}小时
- + percent === 100 ? '100%' : `${percent}%`} + />
- - - - - } - /> - + { + subject_data.length!==0? + {subject_data ? subject_data.subject_name : '--'}} + hoverable={false} + className={styles.card} + actions={[]} + > + } + title={false} + description={ + <> + + + {subject_data ? +
+ : '--'} + + + + + + + + + percent === 100 ? '100%' : `${percent}%`} + /> + + 章节模拟考试进度 + + + + } + /> + + :
+ } + + +
); @@ -178,7 +196,7 @@ const CardList = () => {
{item?.course_name}
{item?.finish_count}题/{item?.question_count}题
- + percent === 100 ? '100%' : `${percent}%`}/>