diff --git a/pages.json b/pages.json index 63cf7cc..044d69f 100644 --- a/pages.json +++ b/pages.json @@ -149,6 +149,41 @@ { "navigationBarTitleText" : "学习" } + }, + { + "path" : "pages/YNEduApp/exam/examination", + "style" : + { + "navigationStyle" : "custom" + } + }, + { + "path" : "pages/YNEduApp/exam/examinationDetails", + "style" : + { + "navigationStyle" : "custom" + } + }, + { + "path" : "pages/YNEduApp/exam/examinationList", + "style" : + { + "navigationBarTitleText" : "考试记录" + } + }, + { + "path" : "pages/YNEduApp/exam/examinationResultDetails", + "style" : + { + "navigationBarTitleText" : "考试结果详情" + } + }, + { + "path" : "pages/YNEduApp/learn/pdfStudy", + "style" : + { + "navigationBarTitleText" : "pdf学习" + } } ], "globalStyle": { diff --git a/pages/YNEduApp/exam/beforeExam.vue b/pages/YNEduApp/exam/beforeExam.vue index 42a2ee8..f4fb4d6 100644 --- a/pages/YNEduApp/exam/beforeExam.vue +++ b/pages/YNEduApp/exam/beforeExam.vue @@ -60,9 +60,9 @@ export default { }, // 进入考试 handleEnterExam() { - // uni.navigateTo({ - // url: '/pages/YNEduApp/exam/exam' - // }) + uni.navigateTo({ + url: '/pages/YNEduApp/exam/examination' + }) } } } diff --git a/pages/YNEduApp/exam/examination.vue b/pages/YNEduApp/exam/examination.vue new file mode 100644 index 0000000..eb52156 --- /dev/null +++ b/pages/YNEduApp/exam/examination.vue @@ -0,0 +1,493 @@ + + + + + + + + 距离考试结束: + + + + + + 第 + {{ currentIndex + 1 }} + /{{ questionList.length }}题 + + + + + + + {{ index + 1 }} + + + + {{ isRotating ? '收起' : '展开' }} + + + + + + + + + + + + 单选题({{ item.score }}分) + 多选题({{ item.score }}分) + 判断题({{ item.score }}分) + + + {{ currentIndex + 1 }}. {{ item.question }} + + + + {{ option.value }}. + {{ option.label }} + + + + + + + + + + + + + + + + + + + + + + + 本场考试还有 + {{ unDoCount }} + 题尚未完成 + + 确定交卷 + + + + + + + + diff --git a/pages/YNEduApp/exam/examinationDetails.vue b/pages/YNEduApp/exam/examinationDetails.vue new file mode 100644 index 0000000..8b472fa --- /dev/null +++ b/pages/YNEduApp/exam/examinationDetails.vue @@ -0,0 +1,284 @@ + + + + {{ result }} + 最新记录 + + + + + + {{ scoreRate }} + 得分率 + + + {{ rightCount }} + 答对题目 + + + {{ rightRate }} + 正确率 + + + {{ answerTime }} + 作答用时 + + + + 总分:{{ totalScore }} + 及格分:{{ passScore }} + 考试时长:{{ duration }}分钟 + 试题:{{ questionCount }} + + + + + 榜上有名 + + 排名 + 姓名/部门 + 得分 + 得分率 + + + + + + + + + {{ item.name }} + + {{ item.score }} + {{ item.scoreRate }} + + + + + + + + + + + + + + + + + + diff --git a/pages/YNEduApp/exam/examinationList.vue b/pages/YNEduApp/exam/examinationList.vue new file mode 100644 index 0000000..0faacc2 --- /dev/null +++ b/pages/YNEduApp/exam/examinationList.vue @@ -0,0 +1,174 @@ + + + + *随机抽题下每道分数根据管理员的设置可能不同,最高分以得分率计算(得分率=得分/总分*100%) + + + + {{ item.time }} + 最新 + {{ item.pass ? '' : '不及格' }} + + + + + 作答用时: + {{ item.answerTime }} + + + 得分/总分: + {{ item.score }}/{{ item.totalScore }} + + + 得分率: + {{ item.scoreRate }} + + + + + 已显示全部 + + + + + + + + + + + + + diff --git a/pages/YNEduApp/exam/examinationResultDetails.vue b/pages/YNEduApp/exam/examinationResultDetails.vue new file mode 100644 index 0000000..9088128 --- /dev/null +++ b/pages/YNEduApp/exam/examinationResultDetails.vue @@ -0,0 +1,725 @@ + + + + + + 全部 + 正确({{ rightCount }}) + 错误({{ wrongCount }}) + 未答({{ unAnsweredCount }}) + + 第 + {{ currentIndex + 1 }} + /{{ list.length }}题 + + + + + + + + {{ index + 1 }} + + + + + {{ isRotating ? '收起' : '展开' }} + + + + + + + + + + + + 单选题({{ item.score }}分) + 多选题({{ item.score }}分) + 判断题({{ item.score }}分) + + + {{ currentIndex + 1 }}. {{ item.question }} + + + + {{ option.value }}. + + {{ option.label }} + + + + + + + + + 回答正确 + 回答错误 + 未选择 + + + + 正确选择 + {{ item.rightAnswer }} + {{ item.rightAnswer.join(', ') }} + + + 你的选择 + + {{ item.userAnswer }} + + {{ item.userAnswer.join(', ') }} + + + + 解析 + {{ item.analysis }} + + + + + + + + diff --git a/pages/YNEduApp/learn/learn.vue b/pages/YNEduApp/learn/learn.vue index c7db3ac..a9509b2 100644 --- a/pages/YNEduApp/learn/learn.vue +++ b/pages/YNEduApp/learn/learn.vue @@ -60,10 +60,11 @@ export default { this.showVideo = false }, handleStudyItem(item) { + console.log('🚀 ~ handleStudyItem ~ item:', item, item.url.includes('.pdf')) if (item.url.includes('.pdf')) { - // uni.navigateTo({ - // url: '/pages/YNEduApp/exam/exam' - // }) + uni.navigateTo({ + url: '/pages/YNEduApp/learn/pdfStudy', + }) } else { this.states = item this.showVideo = true diff --git a/pages/YNEduApp/learn/pdfStudy.vue b/pages/YNEduApp/learn/pdfStudy.vue new file mode 100644 index 0000000..f2a13e2 --- /dev/null +++ b/pages/YNEduApp/learn/pdfStudy.vue @@ -0,0 +1,19 @@ + + + + + + + diff --git a/static/images/correct.png b/static/images/correct.png new file mode 100644 index 0000000..0b73060 Binary files /dev/null and b/static/images/correct.png differ diff --git a/static/images/result-bg.png b/static/images/result-bg.png new file mode 100644 index 0000000..0fcfef4 Binary files /dev/null and b/static/images/result-bg.png differ