Bladeren bron

更新题目详情组件

dengshaobo 1 dag geleden
bovenliggende
commit
9afa35f80d

+ 6 - 5
src/views/targetImprove/components/QuestionItem.vue

@@ -5,16 +5,16 @@
            {{ index}}
         </div>
         <span class="header_type">
-            选择题
+            {{question.questionType}}
         </span>
         <span class="header_difficulty">
-            容易
+            {{question.questionLevel}}
         </span>
         <div class="header_exam_name">
-            25-26学年高一下学期期末考试 第14题
+            {{question.fromPaper}} 
         </div>
     </div>
-    <div class="question_content" v-html="questionContent">
+    <div class="question_content" v-html="question.title">
         
     </div>
   </div>
@@ -26,7 +26,7 @@ export default {
   components: {
   },
   props: {
-    questionData: {
+    question: {
       type: Object,
       default: () => {
         return {};
@@ -131,6 +131,7 @@ export default {
         width: 100%;
         height: auto;
         background: #fff;
+        line-height: 30px;
 
     }
 }

+ 1 - 1
src/views/targetImprove/practice/practiceAnswer.vue

@@ -38,7 +38,7 @@
               v-for="(item, index) in questionList"
               :key="item.questionId"
             >
-              <QuestionItem :question="item"></QuestionItem>
+              <QuestionItem :question="item" :index="index+1"></QuestionItem>
               <div :class="['question_footer', { img_list: index == 1 }]">
                 <span class="footer_title">我的作答:</span>
                 <template v-if="index == 1">