feat: 细节修改啊

This commit is contained in:
cgd_mac 2022-02-25 19:28:47 +08:00
parent 9835434ab9
commit db6cb837f4
2 changed files with 6 additions and 5 deletions

View File

@ -16,7 +16,7 @@
<div class="exam-line"></div>
<div class="exam-box">
<a-card :bordered="false" ref="question">
<div class="exam-title">{{ data.courseName }}</div>
<div class="exam-title">{{ data.courseName }}<template v-if="item.questionScore">{{item.questionCount}}每题{{item.questionScore}}{{item.totalScore}}</template></div>
<div class="exam-main">
<div v-for="(item, index) in data.question" :key="index">
<div class="sub-title">{{ $getCapitalizeNumber(index) }}{{ $getQuestionTypeText(item.questionType) }}<span v-if="type === 'exam'">{{ item.questionCount }}每题{{ item.questionScore }}{{ item.totalScore }}</span></div>

View File

@ -6,10 +6,7 @@
<span v-html="data.questionName"></span>
</div>
<div class="options-box">
<ul class="answer-list">
<!-- <li :class="{'success-li' : index == 2}" v-for="(item, index) in options" :key="index">
<span>{{ optionKeys[index] }}</span>{{ item.label }}
</li> -->
<ul class="answer-list" v-if="data.questionType != 3">
<li v-if="data.answerA || data.answerA === 0" :class="[{'error-li': data.myAnswerList.indexOf('A') !== -1},{'success-li' : data.rightAnswers.indexOf('A') !== -1}]"><span>A</span>{{ data.answerA }}</li>
<li v-if="data.answerB || data.answerB === 0" :class="[{'error-li': data.myAnswerList.indexOf('B') !== -1},{'success-li' : data.rightAnswers.indexOf('B') !== -1}]"><span>B</span>{{ data.answerB }}</li>
<li v-if="data.answerC || data.answerC === 0" :class="[{'error-li': data.myAnswerList.indexOf('C') !== -1},{'success-li' : data.rightAnswers.indexOf('C') !== -1}]"><span>C</span>{{ data.answerC }}</li>
@ -17,6 +14,10 @@
<li v-if="data.answerE || data.answerE === 0" :class="[{'error-li': data.myAnswerList.indexOf('E') !== -1},{'success-li' : data.rightAnswers.indexOf('E') !== -1}]"><span>E</span>{{ data.answerE }}</li>
<li v-if="data.answerF || data.answerF === 0" :class="[{'error-li': data.myAnswerList.indexOf('F') !== -1},{'success-li' : data.rightAnswers.indexOf('F') !== -1}]"><span>F</span>{{ data.answerF }}</li>
</ul>
<ul v-else class="answer-list">
<li :class="[{'error-li': data.myAnswerList.indexOf('A') !== -1},{'success-li' : data.rightAnswers.indexOf('A') !== -1}]"><span>A</span>{{ data.answerA || '正确' }}</li>
<li :class="[{'error-li': data.myAnswerList.indexOf('B') !== -1},{'success-li' : data.rightAnswers.indexOf('B') !== -1}]"><span>B</span>{{ data.answerB || '错误' }}</li>
</ul>
</div>
<div class="flex-center justify-between" style="margin-top: 10px;">
<div style="flex: 1;">