Commit 7e4851ca authored by 李智书's avatar 李智书

1.提交更新;

parent dbde8451
...@@ -115,7 +115,8 @@ ...@@ -115,7 +115,8 @@
}, },
onReachBottom: function(e) { onReachBottom: function(e) {
console.log("onReachBottom", e); console.log("onReachBottom", e);
this.PayProjectList.push(Array(7).fill(1)) this.pageCurrent = this.pageCurrent + 1
this.getPayProject()
}, },
methods: { methods: {
// 切换tab // 切换tab
...@@ -150,6 +151,7 @@ ...@@ -150,6 +151,7 @@
this.PayProjectList = [] this.PayProjectList = []
return return
} }
if (data.data.records && Array.isArray(data.data.records)) { if (data.data.records && Array.isArray(data.data.records)) {
let tmp = data.data.records; let tmp = data.data.records;
let newArr = [] let newArr = []
...@@ -159,7 +161,14 @@ ...@@ -159,7 +161,14 @@
s.amountMust = (s.amountMust / 100).toFixed(2) s.amountMust = (s.amountMust / 100).toFixed(2)
newArr.push(s) newArr.push(s)
} }
this.PayProjectList = newArr if (this.pageCurrent == 1) {
this.PayProjectList = newArr
return
}
if (this.pageCurrent > 1) {
this.PayProjectList.push(newArr)
return
}
} else { } else {
this.PayProjectList = [] this.PayProjectList = []
} }
......
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