41
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<div class="type_left">答案解析</div>
|
||||
</div>
|
||||
<div class="topic mar-top" v-if="showAnalysis">
|
||||
<div><span>正确答案:</span></div>
|
||||
<div><span>正确答案:</span><span>{{ rightOpt }}</span></div>
|
||||
<div style="margin-top: 8px" v-html="list[activeIndex].analysis"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user