谢杰标 2 年之前
父节点
当前提交
06bce94416
共有 3 个文件被更改,包括 10 次插入19 次删除
  1. 1 2
      pages2/bank/questionBank.vue
  2. 7 15
      pages2/bank/questionBankAllExplain.vue
  3. 2 2
      pages2/order/index.vue

+ 1 - 2
pages2/bank/questionBank.vue

@@ -435,7 +435,7 @@
                             bank.ques[ansIndex] != bank.ans[ansIndex],
                           user_choose:
                             bankType == 2 &&
-                            item.optionsId == bank.ques[ansIndex],
+                            option.optionsId == bank.ques[ansIndex],
                         }"
                         class="activeTI"
                       >
@@ -1157,7 +1157,6 @@ export default {
 
             if (isOver) {
               count++;
-              console.log(item, 444);
             }
           }
         } else if (item.type == 5) {

+ 7 - 15
pages2/bank/questionBankAllExplain.vue

@@ -1,11 +1,7 @@
 <template>
   <view class="questionBank">
     <nav-bar title="全部解析"></nav-bar>
-    <swiper
-      class="swiper"
-      :current="current"
-      @change="swiperChange"
-    >
+    <swiper class="swiper" :current="current" @change="swiperChange">
       <swiper-item v-for="(bank, bankIndex) in questionList" :key="bankIndex">
         <view class="pageContent">
           <view class="pad_8 titBox">
@@ -280,11 +276,8 @@
                 问题{{ tabIndex + 1 }}
               </view>
             </view>
-            <view
-              v-for="(ansItem, ansIndex) in bank.jsonStr"
-              v-if="bank.current == ansIndex"
-              :key="ansIndex"
-            >
+            <!-- v-if="bank.current == ansIndex" -->
+            <view v-for="(ansItem, ansIndex) in bank.jsonStr" :key="ansIndex">
               <template v-if="ansItem.type == 1">
                 <view class="pad_8 titBox">
                   <view class="leftLetters">
@@ -358,7 +351,7 @@
                   <view class="pad_8 answerInfos">
                     <view class="answerTitle">答案解析</view>
                     <view class="answerContent">
-                      <rich-text :nodes="option.analysisContent"></rich-text>
+                      <rich-text :nodes="ansItem.analysisContent"></rich-text>
                     </view>
                   </view>
                 </view>
@@ -662,7 +655,7 @@ export default {
     this.chapterId = option.chapterId || "";
     this.moduleId = option.moduleId || "";
     this.recordId = option.recordId || "";
-    this.courseType = option.courseType
+    this.courseType = option.courseType;
     let showDialog = uni.getStorageSync("showDialog");
 
     if (showDialog) {
@@ -685,14 +678,13 @@ export default {
     goodsQuestionList() {
       if (this.courseType == 2) {
         this.$api.bankReportData(this.recordId).then((res) => {
-          this.questionList = JSON.parse(res.data.data.historyExamJson)
-        })
+          this.questionList = JSON.parse(res.data.data.historyExamJson);
+        });
       } else {
         this.$api.examReport(this.recordId).then((res) => {
           this.questionList = JSON.parse(res.data.data.historyExamJson);
         });
       }
-      
     },
 
     openFooterTab() {

+ 2 - 2
pages2/order/index.vue

@@ -86,7 +86,7 @@
                     >申请退款</view
                   >
                   <!-- <view v-if="items.refundStatus == 2"> 已退款</view> -->
-                  <view v-if="items.periodStatus">{{
+                  <view v-if="items.periodStatus !== null">{{
                     [
                       "复审不通过",
                       "初审不通过",
@@ -753,4 +753,4 @@ page {
   align-items: center;
   padding: 0 30rpx;
 }
-</style>
+</style>