Quellcode durchsuchen

下一个视频播放问题

谢杰标 vor 2 Jahren
Ursprung
Commit
6bb1ea7240
1 geänderte Dateien mit 6 neuen und 22 gelöschten Zeilen
  1. 6 22
      src/pages/course-detail/index.vue

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

@@ -5380,7 +5380,7 @@ export default {
           orderGoodsId: this.orderGoodsId,
         },
       }).then((res) => {
-        console.log("直播的用户学习日志:", res);
+        
       });
     },
     // 节卷不需要控制
@@ -5614,12 +5614,6 @@ export default {
 
         let learnNum = await this.goodsTodayStudySectionNum(option);
         let hasLearn = await this.gradeCheckGoodsStudy(option);
-        console.log(hasLearn, "hasLearn");
-        console.log(learnNum, "learnNum");
-        console.log(
-          this.goodsData.sectionMaxNum,
-          "this.goodsData.sectionMaxNum"
-        );
         if (this.goodsData.sectionMaxNum > 0) {
           if (learnNum >= this.goodsData.sectionMaxNum && !hasLearn) {
             this.clickLock = false;
@@ -5730,9 +5724,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 判断点击节才跳转, 不判断的话一进来页面到这里就直接跳转了
@@ -6111,6 +6103,7 @@ export default {
     getPhotoLastRecord() {
       return new Promise((resolve) => {
         let self = this;
+        this.photoConfig = false;
         let data = {
           sectionId: parseInt(self.playSectionId),
           goodsId: parseInt(self.goodsId),
@@ -6119,8 +6112,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;
@@ -6133,7 +6125,6 @@ export default {
               self.photoHistoryList.push(res.data[i].photoIndex);
             }
           }
-
           resolve();
         });
       });
@@ -6213,6 +6204,9 @@ export default {
 
     //配置随机拍照时间
     configPhoto() {
+      if(this.photoList.length){
+        return
+      }
       var polyvPlayerContext = this.player;
       let totalVideoTime = polyvPlayerContext.j2s_getDuration();
       let duration = polyvPlayerContext.j2s_getCurrentTime();
@@ -6260,7 +6254,6 @@ export default {
               }
             }
           }
-          console.log(this.photoList, "随机拍照时间数组11", photoNum);
           this.postCoursePhotoRecord(true); //提交随机拍照时间数组
         }
         console.log(this.photoList, "随机拍照时间数组");
@@ -6811,7 +6804,6 @@ export default {
           moduleId: parseInt(self.moduleId),
         };
         self.$request.recordLast(data).then((res) => {
-          console.log(res.data, "res.datares.datares.datares.datares.data");
           resolve(res.data);
         });
       });
@@ -6878,7 +6870,6 @@ export default {
       this.$request
         .reMenuList({ courseId: this.courseId, gradeId: this.gradeId })
         .then(async (res) => {
-          console.log("--asfsdgshfduofhdug", res.rows, this.menuList);
           for (let i = 0; i < res.rows.length; i++) {
             let item = res.rows[i];
             item.id = item.menuId;
@@ -6889,11 +6880,6 @@ export default {
             item.parent = this.menuList;
           }
           self.menuList = res.rows;
-          console.log(
-            "==============self.menuList===",
-            res.rows,
-            self.menuList
-          );
           if (
             (this.sectionItem.recordingUrl || this.sectionItem.liveUrl) &&
             this.needOpenNew
@@ -7280,13 +7266,11 @@ export default {
                   this.goodsTeacher.push(data);
                 });
               }
-              console.log(this.goodsTeacher, "this.goodsTeacher");
               this.goodsTeacher.forEach((item) => {
                 if (item.courseList.some((x) => x.courseId == this.courseId)) {
                   this.teacherList = item.teaList;
                 }
               });
-              console.log(this.teacherList, "this.teacherList");
             });
           this.courseList.push(...res.rows);
           this.courseTotal = res.total;