Commit d82f3109 by 刘海龙

11

parent a76c3084
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
mounted:function(){ mounted:function(){
$("#preloader").hide(); $("#preloader").hide();
this.onTopTab(0) this.onTopTab(0)
var that = this
//滚动条到页面底部加载更多案例 //滚动条到页面底部加载更多案例
$(window).scroll(function(){ $(window).scroll(function(){
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
// console.log("top:"+scrollTop+",doc:"+scrollHeight+",client:"+clientHeight); // console.log("top:"+scrollTop+",doc:"+scrollHeight+",client:"+clientHeight);
if(scrollTop + clientHeight >= scrollHeight){ //距离顶部+当前高度 >=文档总高度 即代表滑动到底部 if(scrollTop + clientHeight >= scrollHeight){ //距离顶部+当前高度 >=文档总高度 即代表滑动到底部
//滚动条到达底部 //滚动条到达底部
console.log(this.data) console.log(that)
// if(this.tab==0){ // if(this.tab==0){
// this.loadZhenti() // this.loadZhenti()
// }else if(this.tab == 1) { // }else if(this.tab == 1) {
......
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