Browse Source

修改样式

aaa 3 years ago
parent
commit
c6d1a30b3d
1 changed files with 9 additions and 10 deletions
  1. 9 10
      src/views/home/exam/page-exam-item-doing.vue

+ 9 - 10
src/views/home/exam/page-exam-item-doing.vue

@@ -14,7 +14,7 @@
         :class="{
           'exam-question-item': true,
           'exam-question-item-on': answerIndex === index,
-          'exam-question-item-down': examQuestionList[index].userAnswer.length
+          'exam-question-item-down': examQuestionList[index].userAnswer.length,
         }"
         v-for="(item, index) in examQuestionList"
         :key="index"
@@ -51,7 +51,7 @@
         <div class="exam-question-describe">
           {{
             examQuestionList[answerIndex].questionContent ||
-              examQuestionList[answerIndex].content
+            examQuestionList[answerIndex].content
           }}
         </div>
         <!-- 答题列表 -->
@@ -59,9 +59,8 @@
         <div
           v-if="
             examQuestionList[answerIndex].type === questionType.TrueOrFalse ||
-              examQuestionList[answerIndex].type ===
-                questionType.singleChoice ||
-              examQuestionList[answerIndex].type === questionType.multipleChoice
+            examQuestionList[answerIndex].type === questionType.singleChoice ||
+            examQuestionList[answerIndex].type === questionType.multipleChoice
           "
           class="exam-question-options"
         >
@@ -70,7 +69,7 @@
             :key="index"
             :class="{
               'exam-question-options-item': true,
-              'exam-question-options-item-checked': answerValue.includes(item)
+              'exam-question-options-item-checked': answerValue.includes(item),
             }"
             @click="handleExamQuestionOptionsItemFun(item)"
           >
@@ -588,10 +587,10 @@ export default {
     getAnswerItemResultFun(item) {
       let isSure = false;
       let lastAnswer = [""];
-    //   lastAnswer[0] = this.getUserAnswerSortFun(item);
-    //   if (lastAnswer[0] === item.finalAnswer[0]) {
-    //     isSure = true;
-    //   }
+      //   lastAnswer[0] = this.getUserAnswerSortFun(item);
+      //   if (lastAnswer[0] === item.finalAnswer[0]) {
+      //     isSure = true;
+      //   }
       lastAnswer = this.getUserAnswerSortFun(item);
       for (let i = 0; i < item.finalAnswer.length; i++) {
         if (lastAnswer[i] && lastAnswer[i] === item.finalAnswer[i]) {