谢杰标 2 年之前
父節點
當前提交
dbb368dc46
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      components/course/courseChapter.vue

+ 8 - 2
components/course/courseChapter.vue

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