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

1.提交更新;

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