Jelajahi Sumber

Merge branch 'dev' into x_bf_1

谢杰标 2 tahun lalu
induk
melakukan
14a307a7c9
1 mengubah file dengan 6 tambahan dan 7 penghapusan
  1. 6 7
      src/pages/course-detail/index.vue

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

@@ -4436,7 +4436,7 @@ export default {
           orderGoodsId: this.orderGoodsId,
         },
       }).then((res) => {
-        console.log("直播的用户学习日志:", res);
+        
       });
     },
     /**
@@ -4472,9 +4472,7 @@ export default {
     },
 
     async playVideo(option) {
-      console.log("asdhsuohfosufgasoug", option);
       if (option.sectionType == 3) {
-        console.log("huifang");
         // 回放
         if (Object.keys(this.clickSectionItem).length) {
           //this.clickSectionItem 判断点击节才跳转, 不判断的话一进来页面到这里就直接跳转了
@@ -4773,6 +4771,7 @@ export default {
     getPhotoLastRecord() {
       return new Promise((resolve) => {
         let self = this;
+        this.photoConfig = false;
         let data = {
           sectionId: parseInt(self.playSectionId),
           goodsId: parseInt(self.goodsId),
@@ -4781,8 +4780,7 @@ export default {
           chapterId: parseInt(self.chapterId),
           moduleId: parseInt(self.moduleId),
         };
-        this.$request.getPhotoLastRecord(data).then((res) => {
-          console.log(res, 666);
+        this.$request.getPhotoLastRecord(data).then((res) => {;
           //清空历史数据
           self.photoHistoryList = [];
           this.photoIndex = 0;
@@ -4795,7 +4793,6 @@ export default {
               self.photoHistoryList.push(res.data[i].photoIndex);
             }
           }
-
           resolve();
         });
       });
@@ -4875,6 +4872,9 @@ export default {
 
     //配置随机拍照时间
     configPhoto() {
+      if(this.photoList.length){
+        return
+      }
       var polyvPlayerContext = this.player;
       let totalVideoTime = polyvPlayerContext.j2s_getDuration();
       let duration = polyvPlayerContext.j2s_getCurrentTime();
@@ -4922,7 +4922,6 @@ export default {
               }
             }
           }
-          console.log(this.photoList, "随机拍照时间数组11", photoNum);
           this.postCoursePhotoRecord(true); //提交随机拍照时间数组
         }
         console.log(this.photoList, "随机拍照时间数组");