Tang 2 سال پیش
والد
کامیت
539a5be5b9

+ 1 - 3
src/components/videoCy/index.vue

@@ -577,9 +577,7 @@ export default {
     }
   },
   beforeDestroy() {
-    if (this.player) {
-      this.player.destroy();
-    }
+    this.player.HTML5.video.removeEventListener("timeupdate", this.timeEvent); //监听器
   }
 };
 </script>

+ 13 - 1
src/pages/course-detail/components/CourseTree.vue

@@ -643,7 +643,8 @@ export default {
           .studyrecordgoodsAllListWithExam({
             gradeId: this.goodsData.gradeId,
             goodsId: this.goodsData.goodsId,
-            courseId: this.courseList[0].courseId
+            courseId: this.courseList[0].courseId,
+            orderGoodsId:this.goodsData.orderGoodsId
             // rebuild: this.rebuild
           })
           .then(res => {
@@ -738,6 +739,15 @@ export default {
       if (this.isActive(item)) return;
       this.$bus.$emit("toPlay", item);
       this.activeSection = item;
+      let query = {
+        gradeId: this.goodsData.gradeId,
+        orderGoodsId: this.goodsData.orderGoodsId,
+        courseId: item.courseId,
+        moduleId: item.moduleId || 0,
+        chapterId: item.chapterId || 0,
+        sectionId: item.sectionId || 0
+      };
+      this.$router.replace({ path: this.$route.path, query });
     },
     //回放或直播
     async watchJumpSection(item) {
@@ -938,6 +948,8 @@ export default {
             let data = res.data;
             if (!data.sectionId) {
               data = this.allSectionList[0];
+            } else {
+              data.type = 3;
             }
             if (
               data.learning == 1 &&

+ 8 - 0
src/pages/person-center/my-course/index.vue

@@ -1199,6 +1199,14 @@ export default {
             .catch(() => {});
         })
         .catch(err => {
+          this.$router.push({
+          path: `/my-course-detail/${item.goodsId}`,
+          query: {
+            gradeId: item.gradeId,
+            orderGoodsId: item.orderGoodsId,
+          }
+        });
+        return
           //可以学习
           this.$request
             .courseCourseList({