From 11e562c749bae252e3f30d1671690518ed15445a Mon Sep 17 00:00:00 2001 From: wangxi <123456> Date: Tue, 8 Mar 2022 15:38:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/course/list/index.tsx | 10 +- web/src/pages/course/subject/index.tsx | 7 +- .../mockExamination/chapterExamination.tsx | 10 +- web/src/pages/mockExamination/chapterList.tsx | 100 +++++++++++------- 4 files changed, 78 insertions(+), 49 deletions(-) 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}%`}/>