From 60f1ff6a15f39b1e25c5549fd0f64ba7a83e051a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=BD=E6=97=A5=E6=99=9A=E9=A3=8E?= <1811466536@qq.com> Date: Thu, 9 Nov 2023 17:45:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E9=83=A8=E8=AE=A2=E5=8D=95=E7=9A=84?= =?UTF-8?q?=EF=BC=8C=E4=B8=8A=E6=8B=89=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/list.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/order/list.vue b/pages/order/list.vue index 4ced7c6..5cb1607 100644 --- a/pages/order/list.vue +++ b/pages/order/list.vue @@ -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)); } }