diff --git a/api/eduApp/index.js b/api/eduApp/index.js index a1daf44..615c77b 100644 --- a/api/eduApp/index.js +++ b/api/eduApp/index.js @@ -72,7 +72,6 @@ export function getExamRankById(params) { }) } - // 练习-列表 /personalCenter/getStudentPracticeList export function getStudentPracticeList(params) { return request({ @@ -81,3 +80,75 @@ export function getStudentPracticeList(params) { data: params }) } + +// 练习-总览 /studentPractice/getPracticeQuestionRate +export function getPracticeQuestionRate(params) { + return request({ + url: '/studentPractice/getPracticeQuestionRate', + method: 'post', + data: params + }) +} + +// 练习-聚合数据 /studentPractice/getPracticeItData +export function getPracticeItData(params) { + return request({ + url: '/studentPractice/getPracticeItData', + method: 'post', + data: params + }) +} + +// 练习-题目 studentPractice/getPracticeQuestion +export function getPracticeQuestion(params) { + return request({ + url: '/studentPractice/getPracticeQuestion', + method: 'post', + data: params + }) +} + +// 练习-答题 studentPractice/insertPracticeAnswerById +export function insertPracticeAnswerById(params) { + return request({ + url: '/studentPractice/insertPracticeAnswerById', + method: 'post', + data: params + }) +} + +// 练习-前后题-跳题 studentPractice/changeQuestion +export function changeQuestion(params) { + return request({ + url: '/studentPractice/changeQuestion', + method: 'post', + data: params + }) +} + +// 练习-弹框序号跳题 /studentPractice/getPracticeQuestionList +export function getPracticeQuestionList(params) { + return request({ + url: '/studentPractice/getPracticeQuestionList', + method: 'post', + data: params + }) +} + +// 练习-保存练习时长 /studentPractice/savePracticeDuration +export function savePracticeDuration(params) { + return request({ + url: '/studentPractice/savePracticeDuration', + method: 'post', + data: params + }) +} + +// 练习-错题消除 studentPractice/updateRemoveRecordData +export function updateRemoveRecordData(params) { + return request({ + url: '/studentPractice/updateRemoveRecordData', + method: 'post', + data: params + }) +} diff --git a/config.js b/config.js index aa253f8..072534a 100644 --- a/config.js +++ b/config.js @@ -2,7 +2,7 @@ module.exports = { // baseUrl:'/prod-api', // baseUrl:'http://112.29.103.165:1616/ynuw', - baseUrl:'http://192.168.0.32:2900/exam-student', + baseUrl:'http://192.168.0.137:2900/exam-student', // 上传文件地址 uploadUrl: 'http://192.168.0.137:2909/exam-file/file/uploadBase64', bmwUrl: 'http://192.168.0.137:2911/exam-bmw', diff --git a/pages/YNEduApp/prac/exercises.vue b/pages/YNEduApp/prac/exercises.vue index 6ea9bdf..83bbf46 100644 --- a/pages/YNEduApp/prac/exercises.vue +++ b/pages/YNEduApp/prac/exercises.vue @@ -4,25 +4,25 @@
-
{{ correctNum }}
+
{{ trueNum }}
-
{{ errorNum }}
+
{{ falseNum }}
-
{{ currentIndex + 1 }}/{{ questionList.length }}
+
{{ allNum }}
-
-
-
{{ index + 1 }}. {{ item.title }}{{ item.type == 3 ? '(判断题)' : '(单选题)' }}
+
+
+
{{ item.paperTopic }}{{ item.examType == 1 ? '(单选题)' : '(判断题)' }}
-
{{ option.value }}.{{ option.label }}
+
{{ option.optionIdent }}.{{ option.optionContent }}
-
正确答案:{{ item.answer }}
+
正确答案:{{ item.correctGrade }}
你的答案:{{ item.select }}
答案解析:
-
{{ item.analysis }}
+
{{ item.answerAnaly }}
-
-
{{ index + 1 }}. {{ item.title }}(多选题)
+
+
{{ index + 1 }}. {{ item.paperTopic }}(多选题)
-
{{ option.value }}.{{ option.label }}
+
{{ option.optionIdent }}.{{ option.optionContent }}
@@ -71,7 +71,7 @@
-
正确答案:{{ item.answer.join('、') }}
+
正确答案:{{ item.correctGrade.join('、') }}
你的答案:{{ item.select.join('、') }}
知识点
-
{{ item.knowledge }}
+
{{ item.answerAnaly }}
@@ -104,24 +104,22 @@
@@ -144,7 +142,7 @@
答题数
-
{{ correctNum }}
+
{{ trueNum }}
正确数
@@ -160,11 +158,11 @@
*
{{ index + 1 }}
@@ -176,9 +174,24 @@