谢杰标 2 년 전
부모
커밋
14d55e2ee3
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      pages3/polyv/detail.vue

+ 3 - 3
pages3/polyv/detail.vue

@@ -700,7 +700,7 @@ export default {
         this.pauseTime = Date.now();
         this.pauseTimer = setInterval(() => {
           console.log("暂停时间", Date.now() - this.pauseTime, this.pauseTime);
-          if (Date.now() - this.pauseTime > 40 * 1000) {
+          if (Date.now() - this.pauseTime > 20 * 1000) {
             // 5 * 60 * 1000
             this.refPlv.exitFullScreen();
             this.text = "暂停";
@@ -1200,14 +1200,14 @@ export default {
     },
     //配置随机拍照时间
     configPhoto(duration) {
-      if (this.photoConfig && this.photoList.length) {
+      if ((this.photoConfig && this.photoList.length) || !this.isPlaying) {
         return;
       }
       let totalVideoTime = this.refPlv.getDuration();
       this.photoConfig = true;
       if (this.erJianErZao) {
         this.photoList = this.randomConfig(totalVideoTime, duration);
-        console.log(this.photoList, "this.photoList");
+        console.log(this.isPlaying, this.photoList, "this.photoList");
         return;
       }
       //没有历史拍照间隔数据