谢杰标 2 жил өмнө
parent
commit
9ebb9f6dd1

+ 1 - 6
src/pages/course-detail/index.vue

@@ -3352,7 +3352,6 @@ export default {
     },
     //校验节是否有试卷
     checkSection(item) {
-      console.log(this.sectionExam, item, "00000000");
       if (this.sectionExam.length == 0) {
         return false;
       }
@@ -5560,7 +5559,6 @@ export default {
         }
         return;
       }
-
       if (section.type != 2) {
         if (this.clickLock) {
           return;
@@ -5579,12 +5577,11 @@ export default {
           this.clickLock = false;
           return;
         }
-
         if (this.businessData.goodsLearningOrder == 2 && !section.isRebuild) {
           //要按从头到尾顺序学习, 且不是重修课程
 
           let rows = await this.studyRecordMenuAllList();
-          if (!this.hasPreItem(rows, section)) {
+          if (this.hasPreItem(rows, section)) {
             //判断是否有上一节
             let newRows = [];
             for (let i = 0; i < rows.length; i++) {
@@ -5608,7 +5605,6 @@ export default {
             let isAllLearn = newRows.every((item) => {
               return item.studyStatus == 1;
             });
-
             if (isAllLearn) {
               this.initVideo(section);
             } else {
@@ -5665,7 +5661,6 @@ export default {
           break;
         }
       }
-
       if (index == 0) {
         return false;
       } else {

+ 3 - 2
src/pages/person-center/my-bank/index/index.vue

@@ -3,7 +3,8 @@
     <div class="no-data" v-if="!bankData.goodsName">暂无可以学习的题库哦~</div>
     <div v-else>
       <h4 class="headerTitle">
-        <span v-if="bankData.subjectNames" style="font-size:20px;">【{{ bankData.subjectNames }}】</span
+        <span v-if="bankData.subjectNames" style="font-size: 20px"
+          >【{{ bankData.subjectNames }}】</span
         >{{ bankData.goodsName
         }}<el-button
           size="mini"
@@ -123,7 +124,7 @@ export default {
           });
         } else {
           this.$request
-            .listGoodsUserQuestion({ pageNum: 1, pageSize: 1 })
+            .bankquestionlistUserFreeUnionBuyGoodsList()
             .then((res) => {
               if (res.rows.length > 0) {
                 this.bankData = res.rows[0];