From 71ebcdb917d8ba9daf264694b64f6e7cf9c04b97 Mon Sep 17 00:00:00 2001 From: unknown <331404948@qq.com> Date: Fri, 1 Nov 2024 18:30:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- pages.json | 9 + pages/exercises/brushQuestions/brushQuestions.vue | 21 +- pages/exercises/brushQuestions/examQuestions.vue | 588 ++++++++++++++++++++++ pages/exercises/examSubjiect1/examSubjiect1.vue | 13 +- pages/exercises/theoryStudy/theoryStudy.vue | 3 +- static/images/theory/scActive.png | Bin 0 -> 835 bytes 7 files changed, 629 insertions(+), 7 deletions(-) create mode 100644 pages/exercises/brushQuestions/examQuestions.vue create mode 100644 static/images/theory/scActive.png diff --git a/manifest.json b/manifest.json index 2f44783..fa3aaa9 100644 --- a/manifest.json +++ b/manifest.json @@ -75,7 +75,7 @@ "disableHostCheck" : true, "proxy" : { "/api" : { - "target" : "http://192.168.1.237:8081/", + "target" : "http://192.168.1.203:8081/", // "target" : "http://192.168.1.40:8099/", "changeOrigin" : true, "secure" : true, diff --git a/pages.json b/pages.json index 9974d0e..d2bdb6a 100644 --- a/pages.json +++ b/pages.json @@ -60,6 +60,15 @@ } }, { + "path": "brushQuestions/examQuestions", + "style": { + "navigationBarTitleText": "模拟考试", + "enablePullDownRefresh": false, + "backgroundTextStyle": "dark" , + "navigationStyle": "custom" + } + }, + { "path": "exam/exam", "style": { "navigationBarTitleText": "考试", diff --git a/pages/exercises/brushQuestions/brushQuestions.vue b/pages/exercises/brushQuestions/brushQuestions.vue index a964788..e155e76 100644 --- a/pages/exercises/brushQuestions/brushQuestions.vue +++ b/pages/exercises/brushQuestions/brushQuestions.vue @@ -84,9 +84,10 @@ 答题卡 - + - + + 收藏 @@ -136,7 +137,7 @@ window.speechSynthesis.speak(speech); // 播报消息 } - import { startQuestionApi, submitAnswerResultApi, getQuestionApi, questionCommentAdd } from '@/config/api.js' + import { startQuestionApi, submitAnswerResultApi, getQuestionApi, questionCommentAdd, questionWrongColle} from '@/config/api.js' import { debounce } from '@/uni_modules/uview-plus'; import { ref, @@ -299,6 +300,7 @@ } const {data: res} = await getQuestionApi(obj) questionBank.value = res + curOption.value.isNext = '' initOptionArr() } async function quesIdListClick(id, index) { @@ -349,6 +351,19 @@ } // console.log(res) } + + async function questionWrongColleFn() { + let isAdd = questionBank.value.isCollect==1?'0':'1' + const obj = { + "carType": usecarStore.carInfo.carType, + "isAdd": isAdd, + "questionId": questionBank.value.id, + "stepType": usecarStore.carInfo.stepType + } + const res = await questionWrongColle(obj) + questionBank.value.isCollect = isAdd + console.log(questionBank.value.isCollect) + } \ No newline at end of file diff --git a/pages/exercises/examSubjiect1/examSubjiect1.vue b/pages/exercises/examSubjiect1/examSubjiect1.vue index 711067a..1d5bb36 100644 --- a/pages/exercises/examSubjiect1/examSubjiect1.vue +++ b/pages/exercises/examSubjiect1/examSubjiect1.vue @@ -30,7 +30,7 @@ 计分规则:模拟考试下不能修改答案,每错1题扣2分,累计错题超过5道,考试不通过,系统自动提醒交卷。 - + @@ -38,6 +38,17 @@