🎨 标记答案是否正确
This commit is contained in:
parent
5b969cfb0c
commit
8d18290909
@ -17,7 +17,9 @@
|
|||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
你的答案: <span class="question-answer">{{answerRecord.subjectAnswerRecords[0].answer}}</span>
|
你的答案:
|
||||||
|
<span v-if="answerRecord.correctAnswer == answerRecord.subjectAnswerRecords[0].answer" class="question-answer answer-right">{{answerRecord.subjectAnswerRecords[0].answer}}</span>
|
||||||
|
<span v-else class="question-answer answer-wrong">{{answerRecord.subjectAnswerRecords[0].answer}}</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col class="question-operate" :span="8">
|
<el-col class="question-operate" :span="8">
|
||||||
<el-button type="primary" @click="getAnswer">查看答案</el-button>
|
<el-button type="primary" @click="getAnswer">查看答案</el-button>
|
||||||
@ -125,4 +127,12 @@ export default {
|
|||||||
margin: 10px auto;
|
margin: 10px auto;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.answer-right {
|
||||||
|
color: limegreen;
|
||||||
|
}
|
||||||
|
|
||||||
|
.answer-wrong {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user