|
@@ -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){ //不存在拍照历史则拍照
|
|
|
//启动拍照
|
|
|
//暂停
|