全部订单的,上拉加载逻辑
parent
bf8b960793
commit
60f1ff6a15
|
@ -412,7 +412,7 @@
|
||||||
data: orderList,
|
data: orderList,
|
||||||
};
|
};
|
||||||
console.log(state.pagination)
|
console.log(state.pagination)
|
||||||
if (state.pagination.current_page < state.pagination.last_page) {
|
if (state.pagination.data.length < state.pagination.total) {
|
||||||
state.loadStatus = 'more';
|
state.loadStatus = 'more';
|
||||||
} else {
|
} else {
|
||||||
state.loadStatus = 'noMore';
|
state.loadStatus = 'noMore';
|
||||||
|
@ -430,7 +430,7 @@
|
||||||
// 加载更多
|
// 加载更多
|
||||||
function loadmore() {
|
function loadmore() {
|
||||||
if (state.loadStatus !== 'noMore') {
|
if (state.loadStatus !== 'noMore') {
|
||||||
getOrderList(state.pagination.current_page + 1);
|
getOrderList(parseInt((state.pagination.data.length/5)+1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue