From 2e93ad93e982f42321ecf505ca72885d54b1dc41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=84=86=E7=9A=AE=E9=B8=AD?= <1003092440@qq.com> Date: Wed, 20 Sep 2023 22:18:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../questionBank/components/Question.vue | 38 +++++++++++++++++-- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/src/pages/questionBank/components/Question.vue b/src/pages/questionBank/components/Question.vue index 28e1163..fcd5306 100644 --- a/src/pages/questionBank/components/Question.vue +++ b/src/pages/questionBank/components/Question.vue @@ -41,7 +41,17 @@ v-if="quesItem.clickAnswer&&!quesItem.trueAnswer.includes(quesItem.clickAnswer) || showBestAnswer"> 答案:{{getRightOp(quesItem.trueAnswer)}} - {{quesItem.bestAnswer}} + 答题技巧:{{quesItem.skillInfo}} + + + + 试题详解 + + + + + 题目解析 + {{quesItem.bestAnswer}} @@ -82,8 +92,18 @@ 答案:{{getRightOp(quesItem.trueAnswer)}} - {{quesItem.bestAnswer}} - + 答题技巧:{{quesItem.skillInfo}} + + + + 试题详解 + + + + + 题目解析 + {{quesItem.bestAnswer}} + @@ -272,6 +292,7 @@ import storage from '@/jtools/storage'; import useQuestionStore from '@/jtools/store/question' //引入store import { + querySysConfig, submitTest } from '@/jtools/api/question'; export default { @@ -298,6 +319,8 @@ }, data() { return { + showSkillInfo:'hidden', + currentType:storage.get('carType') || '1001', onoff:'0', navTitle: '', originArray: '', @@ -323,7 +346,14 @@ time: 0, } }, - + created() { + const carType=storage.get('carType') || '1001' + querySysConfig(carType, 'NeedSkillInfo').then(resp=>{ + if(resp.code === '0000'){ + this.showSkillInfo = resp.data.configValue + } + }) + }, computed: { ...mapState(useQuestionStore, ["currentIndex_subject1", "currentIndex_subject4"]), //映射函数,取出tagslist isShowAnswer() { -- 2.38.1.windows.1 From 89c4b2148e59da322ced23b8721907fc88429419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=84=86=E7=9A=AE=E9=B8=AD?= <1003092440@qq.com> Date: Wed, 20 Sep 2023 22:23:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/me/info.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/me/info.vue b/src/pages/me/info.vue index 4aecdae..e220123 100644 --- a/src/pages/me/info.vue +++ b/src/pages/me/info.vue @@ -15,7 +15,7 @@ - + -- 2.38.1.windows.1