ソースを参照

去除答疑列表接口定时器

xuqiaoying 2 年 前
コミット
21e7c9d1df
2 ファイル変更10 行追加9 行削除
  1. 5 6
      pages3/live/detail.vue
  2. 5 3
      pages3/polyv/detail.vue

+ 5 - 6
pages3/live/detail.vue

@@ -696,7 +696,7 @@ export default {
       isAllowSeek: "no",
       playbackRate: [1.0],
       timer: null,
-      answerTimer: null,
+      // answerTimer: null,
       goodsPhotographConfig: null,
       intervalTimeList: [], // 间隔拍照时长
       intervalTimeIndex: 0, //当前处于哪个时间段拍照
@@ -874,9 +874,9 @@ export default {
       this.getGoodsDetail();
       this.getAnswerList();
       this.studyRecordMenuAllList();
-      this.answerTimer = setInterval(() => {
-        this.getAnswerList();
-      }, 5000);
+      // this.answerTimer = setInterval(() => {
+      //   this.getAnswerList();
+      // }, 5000);
       let option = this.options
       let noteSecond = Number(option.noteSecond);
       if (noteSecond > 0) {
@@ -974,7 +974,7 @@ export default {
       // console.log("onUnload");
       //移除所有的事件监听器
       uni.$off();
-      clearInterval(this.answerTimer);
+      // clearInterval(this.answerTimer);
       if (this.timer) {
         clearInterval(this.timer);
       }
@@ -2224,7 +2224,6 @@ export default {
     },
     startVideo() {
       this.startStatus = true;
-      console.log('444444444')
     },
     getAnswerList() {
       let self = this;

+ 5 - 3
pages3/polyv/detail.vue

@@ -687,7 +687,7 @@ export default {
       isAllowSeek: "no",
       playbackRate: [1.0],
       timer: null,
-      answerTimer: null,
+      // answerTimer: null,
       goodsPhotographConfig: null,
       intervalTimeList: [], // 间隔拍照时长
       intervalTimeIndex: 0, //当前处于哪个时间段拍照
@@ -1097,7 +1097,7 @@ export default {
       this.closePlv();
       //移除所有的事件监听器
       uni.$off();
-      clearInterval(this.answerTimer);
+      // clearInterval(this.answerTimer);
       if (this.timer) {
         clearInterval(this.timer);
       }
@@ -1789,7 +1789,6 @@ export default {
       return {};
     },
 		loadedmetadata(e) {
-      console.log('999999999999999999999');
 			var polyvPlayerContext = this.selectComponent("#playerVideo");
 			this.hasStart = true;
 			uni.$off('playPause')
@@ -1799,6 +1798,9 @@ export default {
 			if(!this.recordObj.videoCurrentTime) { //新视频直接提交一条观看记录
 				this.postStudyRecord(0)
 			}
+      // setInterval(() => {
+      //   this.postStudyRecord(0)
+      // }, 15 * 1000)
 		},
     getPhotoLastRecord() {
       let self = this;