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() {