From 83990f1bcf0ff640b5901a6309f6e8a98f55e048 Mon Sep 17 00:00:00 2001 From: unknown <331404948@qq.com> Date: Fri, 25 Oct 2024 18:34:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/api.js | 24 ++++++++++- pages/exercises/brushQuestions/brushQuestions.vue | 10 ++++- .../categoryExercises/categoryExercises.vue | 3 ++ pages/exercises/chapter/chapter.vue | 6 +-- .../queTypeExercises/queTypeExercises.vue | 49 ++++++++++++++-------- store/modules/car.js | 10 ++++- 6 files changed, 76 insertions(+), 26 deletions(-) diff --git a/config/api.js b/config/api.js index 48a4974..2741563 100644 --- a/config/api.js +++ b/config/api.js @@ -23,8 +23,6 @@ export const logOut = (data={}) => http.post('member/auth/logout', data, {custom export const getQuestionApi = (data) => http.post('questionBank/getQuestion', data,) // 添加反馈 export const questionCommentAdd = (data) => http.post('questionComment/add', data,) - // 添加|取消 收藏 错题 - export const questionWrongColle = (data) => http.post('questionWrong/dealCollection', data,) // 通知 export const indexNoticeApi = (subject) => http.get('idex/notice-'+subject, ) // 轮播图 @@ -38,8 +36,30 @@ export const logOut = (data={}) => http.post('member/auth/logout', data, {custom // 分类学习父级id export const columnFid = (data) => http.get(`idex/${data.type}-column-${data.stepType}-${data.carType}`, ) + // 添加|取消 收藏 错题 + export const questionWrongColle = (data) => http.post('questionWrong/dealCollection', data,) + // 删除 + export const deleteWrongOrCol = (data) => http.post('questionWrong/deleteWrongOrCol', data,) + // 我的错题 + export const myWrongQuestion = (data) => http.post('questionWrong/myWrongQuestion', data,) +// 点击错题与收藏时,显示错题|收藏下 子菜单 + export const questionSubmenu = (data) => http.post('questionWrong/submenu', data,) + // 点击错题|收藏 下的某个知识点的题目列表 + export const findQuestionList = (data) => http.post('questionWrong/findQuestionList', data,) + // 我的学习--天数、错题、收藏、考试记录、合格率 + export const mystudy = (carType) => http.get(`mystudy/mystudy-${carType}`, ) + // 模拟考试科目1或者4考试首页 + export const questionExam = (data) => http.get(`questionExam/exam-${data.stepType}-${data.carType}`, ) + // 模拟考试科目1或者4考试成绩单 + export const examTranscript = (data) => http.get(`questionExam/examTranscript-${stepType}-${carType}`, ) + // 开始考试 + export const startExam = (data) => http.post('questionExam/startExam', data,) + // 交卷,模拟考试保存接口 + export const startExamDo = (data) => http.post('questionExam/saveExam.do', data,) + // 考试结果页 + export const examId = (data) => http.post(`questionExam/result-${examId}`, data,) diff --git a/pages/exercises/brushQuestions/brushQuestions.vue b/pages/exercises/brushQuestions/brushQuestions.vue index 034fbc5..a964788 100644 --- a/pages/exercises/brushQuestions/brushQuestions.vue +++ b/pages/exercises/brushQuestions/brushQuestions.vue @@ -13,7 +13,7 @@ {{types[questionBank.types-1]}} - {{ questionBank.title}} + {{ questionBank.title}} @@ -131,6 +131,11 @@