全部订单的,上拉加载逻辑

pull/13/head
落日晚风 2023-11-09 17:45:25 +08:00
parent bf8b960793
commit 60f1ff6a15
1 changed files with 2 additions and 2 deletions

View File

@ -412,7 +412,7 @@
data: orderList,
};
console.log(state.pagination)
if (state.pagination.current_page < state.pagination.last_page) {
if (state.pagination.data.length < state.pagination.total) {
state.loadStatus = 'more';
} else {
state.loadStatus = 'noMore';
@ -430,7 +430,7 @@
//
function loadmore() {
if (state.loadStatus !== 'noMore') {
getOrderList(state.pagination.current_page + 1);
getOrderList(parseInt((state.pagination.data.length/5)+1));
}
}