Commit 70228f25 by 刘海龙

111

parent 541eae88
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
mounted:function(){ mounted:function(){
$("#preloader").hide(); $("#preloader").hide();
this.onTopTab(0) this.onTopTab(0)
var that = this var that = this
//滚动条到页面底部加载更多案例 //滚动条到页面底部加载更多案例
$(window).scroll(function(){ $(window).scroll(function(){
var scrollTop = $(this).scrollTop(); //滚动条距离顶部的高度 var scrollTop = $(this).scrollTop(); //滚动条距离顶部的高度
...@@ -250,6 +250,7 @@ ...@@ -250,6 +250,7 @@
console.log("tab:" + that.tab) console.log("tab:" + that.tab)
console.log("page:" + that.page) console.log("page:" + that.page)
if(that.tab==0){ if(that.tab==0){
console.log("1111111111")
that.loadZhenti() that.loadZhenti()
}else if(that.tab == 1) { }else if(that.tab == 1) {
that.loadDownload() that.loadDownload()
...@@ -366,6 +367,7 @@ ...@@ -366,6 +367,7 @@
this.page=1 this.page=1
this.zhenti = [] this.zhenti = []
this.loadZhenti() this.loadZhenti()
console.log("222222222222")
} else if(this.tab == 1) { } else if(this.tab == 1) {
this.page=1 this.page=1
this.loadDownload() this.loadDownload()
...@@ -390,6 +392,7 @@ ...@@ -390,6 +392,7 @@
this.$refs.item.toggle() this.$refs.item.toggle()
if(this.tab == 0) { if(this.tab == 0) {
this.loadZhenti() this.loadZhenti()
console.log("33333333333")
} else if(this.tab == 1) { } else if(this.tab == 1) {
this.loadDownload() this.loadDownload()
} }
......
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