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