From 0400ac61ced62288e87b33ad787280003bd6c037 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Tue, 31 Dec 2024 15:56:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/YNEduApp/exam/beforeExam.vue | 13 +++-- pages/YNEduApp/exam/examination.vue | 61 +++++++++++++------- pages/YNEduApp/exam/examinationDetails.vue | 6 +- pages/YNEduApp/learnProj/learnProjDetail.vue | 5 +- 4 files changed, 55 insertions(+), 30 deletions(-) diff --git a/pages/YNEduApp/exam/beforeExam.vue b/pages/YNEduApp/exam/beforeExam.vue index 76afde3..5615a14 100644 --- a/pages/YNEduApp/exam/beforeExam.vue +++ b/pages/YNEduApp/exam/beforeExam.vue @@ -21,12 +21,14 @@ -
*进入考试后,计时结束将自动交卷,退出后将会继续计时,考试期间请勿登录其他设备,否则成绩作废
+
+ *进入考试后,计时结束将自动交卷,退出后将会继续计时,考试期间请勿登录其他设备,否则成绩作废 +
- +
@@ -117,7 +119,7 @@ export default { padding: 10px; border-radius: 5px; background-color: #fff; - height: 90vh; + height: calc(100vh - 90px); box-sizing: border-box; .title { @@ -129,14 +131,14 @@ export default { .subtitle { font-size: 14px; - color: #666; + color: #3185f0; margin-top: 10px; } .info { display: flex; justify-content: space-between; - margin-top: 20px; + margin-top: 50px; .duration-wrapper, .count-wrapper, @@ -182,6 +184,7 @@ export default { bottom: 0; left: 0; width: 100%; + height: 50px; background-color: #fff; padding: 10px 0; display: flex; diff --git a/pages/YNEduApp/exam/examination.vue b/pages/YNEduApp/exam/examination.vue index aa5714c..f134fed 100644 --- a/pages/YNEduApp/exam/examination.vue +++ b/pages/YNEduApp/exam/examination.vue @@ -2,9 +2,19 @@ - - - + + +
@@ -70,27 +80,30 @@
-
-
-
+
+
单选题({{ item.questionScore }}分)
多选题({{ item.questionScore }}分)
判断题({{ item.questionScore }}分)
-
{{ currentIndex + 1 }}. {{ item.examTopic }}
- + {{ currentIndex + 1 }}. {{ item.examTopic }} +
+ + +
{{ option.optionIdent }}.
{{ option.optionContent }}
-
@@ -117,7 +130,7 @@
-
+
@@ -162,8 +175,10 @@ import { updStudyDurationExamPractice } from '@/api/eduApp' import config from '@/config' +import uLine from '../../../uni_modules/uview-ui/components/u-line/u-line.vue' export default { + components: { uLine }, data() { return { isLoading: false, @@ -686,6 +701,7 @@ export default { height: 90vh; .top-content { + margin: 10px; background: #fff; padding: 10px; border-radius: 5px; @@ -749,15 +765,13 @@ export default { .question-wrapper { padding: 10px; .question-type-wrapper { - margin: 20px 0; + margin: 20px 0 10px; display: flex; justify-content: flex-start; align-items: center; .line { - width: 2px; - height: 11px; - background: #1989fa; + border: 2px solid #1989fa; margin-right: 3px; } .question-type { @@ -766,13 +780,13 @@ export default { } .question { + margin-bottom: 8px; font-weight: 800; color: #333333; } } .options { - margin-top: 10px; - margin-bottom: 30px; + margin: 5px 0 30px 20px; overflow: auto; .option-wrapper { max-height: 200px; @@ -797,7 +811,7 @@ export default { color: #333; } .option-content { - margin-left: 10px; + /* margin-left: 10px; */ color: #333; } } @@ -812,12 +826,17 @@ export default { padding: 15px 0; padding-bottom: 18px; display: flex; - justify-content: flex-end; + justify-content: space-between; align-items: center; .btn { width: 100px; - margin-right: 10px; + &:first-child { + margin-left: 15px; + } + &:last-child { + margin-right: 15px; + } } } } diff --git a/pages/YNEduApp/exam/examinationDetails.vue b/pages/YNEduApp/exam/examinationDetails.vue index dffbfff..fb2266b 100644 --- a/pages/YNEduApp/exam/examinationDetails.vue +++ b/pages/YNEduApp/exam/examinationDetails.vue @@ -63,7 +63,7 @@ />
-->
- +
@@ -274,7 +274,7 @@ export default { .center-container { margin: 0 10px; width: calc(100% - 20px); - height: 250px; + height: 275px; background: #e8f2fe; border-radius: 20px; display: flex; @@ -287,7 +287,7 @@ export default { flex-wrap: wrap; justify-content: space-around; align-items: center; - margin: 0 10px; + margin: 30px 10px 10px; .item { margin-top: 25px; diff --git a/pages/YNEduApp/learnProj/learnProjDetail.vue b/pages/YNEduApp/learnProj/learnProjDetail.vue index 17c5de6..c03aaa2 100644 --- a/pages/YNEduApp/learnProj/learnProjDetail.vue +++ b/pages/YNEduApp/learnProj/learnProjDetail.vue @@ -289,6 +289,7 @@ export default { return } const params = { + ...item, id: item.examMsg.id, // 考试id cutNum: item.examMsg.isCut, // 切屏次数 examNum: item.examMsg.examNum, // 考试次数 @@ -297,7 +298,9 @@ export default { studyId: this.studyId, // 学习id responseTime: item.examMsg.responseTime, // 考试时长 score: item.examMsg.score, // 总分 - passScore: item.examMsg.passScore // 及格分数 + passScore: item.examMsg.passScore, // 及格分数 + name: item.examMsg.name, // 考试名称 + validityDate: item.examMsg.validityDate // 考试时间 } console.log('🚀 ~ toggleTheoryExam ~ params:', params) uni.navigateTo({