Commit 33ae8a49 by 刘海龙

111

parent 6b6b780d
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
new Vue({ new Vue({
el: '#app', el: '#app',
data: function() { data: function() {
...@@ -202,11 +202,21 @@ ...@@ -202,11 +202,21 @@
} }
}, },
created:function() { created:function() {
}, },
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