he2802 3 lat temu
rodzic
commit
77fd959030
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      pages3/polyv/detail.vue

+ 2 - 2
pages3/polyv/detail.vue

@@ -512,7 +512,7 @@ export default {
 					this.photoList.push(s)
 					initSpace+=spaceTime
 				}
-		//		console.log(this.photoList,"随机拍时间数组",this.photoNum)
+				console.log(this.photoList,"随机拍时间数组")
 				//兼容已有观看历史
 				for(let i=0;i<this.photoList.length-1;i++){
 					if(this.photoList[i]<duration&&this.photoList[i+1]>duration){
@@ -1014,7 +1014,7 @@ export default {
 						if(nextIndex<this.photoList.length){
 							nextTime = Number(this.photoList[nextIndex]); //获取下次拍照秒数
 						}
-						if (photoTime < this.playTime) {
+						if (photoTime < this.playTime&&photoTime>this.playTime-3) { //3秒区间内才触发拍照,避免拉动滚动条 
 							if(this.photoHistoryList.indexOf(this.photoIndex)<0){ //不存在拍照历史则拍照
 								//启动拍照
 								//暂停