瀏覽代碼

修改提交记录为30秒

xuqiaoying 3 年之前
父節點
當前提交
acbc98d83b
共有 3 個文件被更改,包括 10 次插入10 次删除
  1. 2 2
      src/pages/course-detail/index copy.vue
  2. 2 2
      src/pages/course-detail/index.vue
  3. 6 6
      src/pages/live-detail/index.vue

+ 2 - 2
src/pages/course-detail/index copy.vue

@@ -5273,7 +5273,7 @@ export default {
           clearInterval(this.postTimer);
           this.postTimer = setInterval(() => {
             this.postStudyRecord(0, this.playSectionId, 5);
-          }, 5000);
+          }, 30000);
           if (this.recordObj.videoCurrentTime) {
             this.showRecordStatus = true;
             setTimeout(() => {
@@ -5294,7 +5294,7 @@ export default {
           if (this.postTimer) {
             this.postTimer = setInterval(() => {
               this.postStudyRecord(0, this.playSectionId, 5);
-            }, 5000);
+            }, 30000);
           }
         });
 

+ 2 - 2
src/pages/course-detail/index.vue

@@ -5785,7 +5785,7 @@ export default {
           clearInterval(this.postTimer);
           this.postTimer = setInterval(() => {
             this.postStudyRecord(0, this.playSectionId, 5);
-          }, 5000);
+          }, 30000);
           if (this.recordObj.videoCurrentTime) {
             this.showRecordStatus = true;
             setTimeout(() => {
@@ -5806,7 +5806,7 @@ export default {
           if (this.postTimer) {
             this.postTimer = setInterval(() => {
               this.postStudyRecord(0, this.playSectionId, 5);
-            }, 5000);
+            }, 30000);
           }
         });
 

+ 6 - 6
src/pages/live-detail/index.vue

@@ -4518,9 +4518,9 @@ export default {
         this.courseDetail(); //课程详情
         this.getGoodsDetail(); //商品详情
         this.getAnswerList(); //答疑列表
-        this.answerTimer = setInterval(() => {
-          this.getAnswerList();
-        }, 5000);
+        // this.answerTimer = setInterval(() => {
+        //   this.getAnswerList();
+        // }, 5000);
         this.getMenuList(); //学习目录
         // this.getReMenuList(); //获取重修目录
         this.getNoteList(); //获取节笔记
@@ -5438,12 +5438,12 @@ export default {
 
         this.player.HTML5.video.addEventListener("timeupdate", self.timeEvent);
         this.player.on("s2j_onPlayStart", () => {
-          //开始播放每5秒提交一次观看时间
+          //开始播放每30秒提交一次观看时间
           this.hasStart = true;
           clearInterval(this.postTimer);
           this.postTimer = setInterval(() => {
             this.postStudyRecord(0, this.playSectionId, 5);
-          }, 5000);
+          }, 30000);
           if (this.recordObj.videoCurrentTime) {
             this.showRecordStatus = true;
             setTimeout(() => {
@@ -5464,7 +5464,7 @@ export default {
           if (this.postTimer) {
             this.postTimer = setInterval(() => {
               this.postStudyRecord(0, this.playSectionId, 5);
-            }, 5000);
+            }, 30000);
           }
         });