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 @@