diff --git a/src/project/qujing/AppLegalLearning/testForm.vue b/src/project/qujing/AppLegalLearning/testForm.vue index 3c56de7..a378f09 100644 --- a/src/project/qujing/AppLegalLearning/testForm.vue +++ b/src/project/qujing/AppLegalLearning/testForm.vue @@ -37,7 +37,7 @@
答案解析
-
正确答案:
+
正确答案:{{ rightOpt }}
@@ -83,6 +83,7 @@ export default { examinationId: '', rightCount: 0, flag: false, + rightOpt: null, } }, methods: { @@ -123,12 +124,15 @@ export default { this.showAnalysis = true; // 单选判断 if(this.list[this.activeIndex].type==0 || this.list[this.activeIndex].type==2){ + this.rightOpt = this.list[this.activeIndex].items.filter(e=> e.checked==1)[0].sort if(this.list[this.activeIndex].items[this.clickIndex].checked==1) { this.score=this.score + this.subjectConfigs[this.list[this.activeIndex].type].eachScore this.rightCount ++ } } if(this.list[this.activeIndex].type==1) { // 多选 + this.rightOpt = this.list[this.activeIndex].items.filter(e=> e.checked==1).map(i=> i.sort) + console.log(this.rightOpt); if(this.list[this.activeIndex].items.every(item=>item.checked===item.isChecked)){ this.score = this.score + this.subjectConfigs[this.list[this.activeIndex].type].eachScore this.rightCount ++ @@ -219,7 +223,7 @@ export default { .testForm_info { background: url("https://cdn.cunwuyun.cn/qujing/bg.png") no-repeat; background-size: 100% auto; - padding: 80px 130px 0 32px; + padding: 80px 32px 120px 32px; box-sizing: border-box; .type {