Commit 33ae8a49 by 刘海龙

111

parent 6b6b780d
...@@ -207,6 +207,16 @@ ...@@ -207,6 +207,16 @@
mounted:function(){ mounted:function(){
$("#preloader").hide(); $("#preloader").hide();
this.onTopTab(0) this.onTopTab(0)
$(window).scroll(function(){
var windowH=$(window).height();//设备可见区域高度
var documentH=$(document).height();//整个网页的高度(包括未显示的部分)
var scrollH=$(window).scrollTop();//滚动条滚动上去的高度
//或者 scrollH = $(document).scrollTop();
if(windowH+scrollH>=documentH){
//do something
console.log(1111)
}
}
}, },
computed: { computed: {
currentItems: function() { currentItems: function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment