|
@@ -57,12 +57,17 @@
|
|
|
<!-- 问题列表 -->
|
|
|
<div class="question-list">
|
|
|
<span
|
|
|
- v-for="({ question_id, is_objective, answer_status }, i) in exercise_info.question_list"
|
|
|
+ v-for="({ question_id, color_mark = '' }, i) in exercise_info.question_list"
|
|
|
:key="question_id"
|
|
|
- :class="[
|
|
|
- 'question-list-item',
|
|
|
- { subjectivity: is_objective === 'false', error: answer_status === 2 || answer_status === 0 }
|
|
|
- ]"
|
|
|
+ :class="['question-list-item']"
|
|
|
+ :style="{
|
|
|
+ backgroundColor: color_mark,
|
|
|
+ color: [questionColorList[0].color, questionColorList[1].color, questionColorList[2].color].includes(
|
|
|
+ color_mark.toUpperCase()
|
|
|
+ )
|
|
|
+ ? '#fff'
|
|
|
+ : '#2c2c2c'
|
|
|
+ }"
|
|
|
@click="
|
|
|
exerciseLink(
|
|
|
exercise_info.answer_record.exercise_share_record_id,
|
|
@@ -559,16 +564,6 @@ $bor-color: #d9d9d9;
|
|
|
cursor: pointer;
|
|
|
background-color: #f0f0f0;
|
|
|
border-radius: 20px;
|
|
|
-
|
|
|
- &.error {
|
|
|
- color: #fff;
|
|
|
- background-color: #f2555a;
|
|
|
- }
|
|
|
-
|
|
|
- &.subjectivity {
|
|
|
- color: $color;
|
|
|
- background-color: #fef2a4;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|