谢杰标 2 rokov pred
rodič
commit
dbb368dc46
1 zmenil súbory, kde vykonal 8 pridanie a 2 odobranie
  1. 8 2
      components/course/courseChapter.vue

+ 8 - 2
components/course/courseChapter.vue

@@ -568,6 +568,10 @@ export default {
       });
     },
     async openChapter(item) {
+      console.log(
+        "🚀 ~ file: courseChapter.vue:571 ~ openChapter ~ item:",
+        item
+      );
       // console.log('---zhang',this.menuItem, this.down, item.courseId, item.moduleId);
       this.down = !this.down;
       if (!this.down && this.list.length == 0) {
@@ -597,7 +601,7 @@ export default {
             //				this.getMenuExamList(item.id,item.courseId,moduleId)
           }
         } else {
-          this.getSectionList(item.chapterId);
+          this.getSectionList(item.chapterId || item.menuId);
         }
       }
     },
@@ -725,7 +729,9 @@ export default {
   computed: {
     ...mapGetters(["goodsAuditionConfigIdList", "chapterOpen"]),
     learnStatus() {
-      // console.log(this.menuItem, "this.menuItem");
+      if (!this.isBuy) {
+        return;
+      }
       let { id, courseId, moduleId } = this.menuItem;
       // console.log(this.menuItem, id, courseId, moduleId, "this.menuItem");
       // console.log(this.sectionItem,)