From c7f51a10dc5ac744962af082f3eb4f03a18fb98b Mon Sep 17 00:00:00 2001 From: cgd_mac <349008059@qq.com> Date: Thu, 13 Jan 2022 22:55:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=88=91=E7=9A=84=E7=BB=83=E4=B9=A0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/practice/practice.js | 11 ++++- src/components/DbQuestionInfoItem/index.vue | 16 +++---- src/components/DbQuestionItem/index.vue | 2 +- src/views/mycollection/index.vue | 2 +- src/views/myexamDetail/index.vue | 46 +++++++++++++++++++-- 5 files changed, 63 insertions(+), 14 deletions(-) diff --git a/src/api/practice/practice.js b/src/api/practice/practice.js index 34a917e..26f5a3d 100644 --- a/src/api/practice/practice.js +++ b/src/api/practice/practice.js @@ -8,7 +8,16 @@ const practiceApi = { collectionList: 'practice/collection/pageList', // 我的收藏列表 recordList: 'practice/record/pageList', // 答题记录 wrongList: 'practice/wrong/pageList', // 错题集 - startAnswer: 'practice/startAnswer' // 开始答题 + startAnswer: 'practice/startAnswer', // 开始答题 + executeSubmit: 'practice/executeSubmit', // 练习交卷 +} + +export function practiceExecuteSubmit(data) { + return request({ + url: practiceApi.executeSubmit, + method: 'post', + data: data + }) } export function practiceStartAnswer(params) { diff --git a/src/components/DbQuestionInfoItem/index.vue b/src/components/DbQuestionInfoItem/index.vue index f1a09ac..cf076d9 100644 --- a/src/components/DbQuestionInfoItem/index.vue +++ b/src/components/DbQuestionInfoItem/index.vue @@ -2,20 +2,20 @@
{{ questionIndex || 1 }}、 - ({{ type | QuestionTypeFormat }}) - + ({{ $getQuestionTypeText(data.questionType) }}) +
diff --git a/src/components/DbQuestionItem/index.vue b/src/components/DbQuestionItem/index.vue index 628526e..9fdcccd 100644 --- a/src/components/DbQuestionItem/index.vue +++ b/src/components/DbQuestionItem/index.vue @@ -3,7 +3,7 @@
{{ index || 1 }}、 ({{ $getQuestionTypeText(type) }}) - +
diff --git a/src/views/mycollection/index.vue b/src/views/mycollection/index.vue index cdac1a6..8d7ec76 100644 --- a/src/views/mycollection/index.vue +++ b/src/views/mycollection/index.vue @@ -22,7 +22,7 @@