推荐视频优化
This commit is contained in:
@@ -187,7 +187,6 @@
|
|||||||
})
|
})
|
||||||
this.page = 1
|
this.page = 1
|
||||||
this.randomNum = Math.floor(Math.random() * 33);
|
this.randomNum = Math.floor(Math.random() * 33);
|
||||||
console.log("getDataList1")
|
|
||||||
if(this.scrollTimer != null){
|
if(this.scrollTimer != null){
|
||||||
clearTimeout(this.scrollTimer);
|
clearTimeout(this.scrollTimer);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -204,7 +204,8 @@
|
|||||||
timerCon: null,
|
timerCon: null,
|
||||||
randomNum: 0,
|
randomNum: 0,
|
||||||
playFlag: false,
|
playFlag: false,
|
||||||
|
// 延时器对象
|
||||||
|
scrollTimer : null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -264,7 +265,12 @@
|
|||||||
}
|
}
|
||||||
this.page = 1
|
this.page = 1
|
||||||
this.randomNum = Math.floor(Math.random() * 33);
|
this.randomNum = Math.floor(Math.random() * 33);
|
||||||
|
if(this.scrollTimer != null){
|
||||||
|
clearTimeout(this.scrollTimer);
|
||||||
|
}
|
||||||
|
this.scrollTimer = setTimeout(()=>{
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
|
}, 1000)
|
||||||
|
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
|
|||||||
Reference in New Issue
Block a user