修复订单列表tab切换叠加问题

修复我的订单切换tab导致不同类型订单叠加显示的bug,修复对象引用关系造成的切换tab后下拉重复项问题

Signed-off-by: DH <ji534@outlook.com>
pull/42/head
DH 2024-02-26 00:13:38 +00:00 committed by Gitee
parent b3754f3a48
commit 5aa076b734
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 6 additions and 4 deletions

View File

@ -138,8 +138,10 @@
return; return;
} }
// //
state.pagination = paginationNull; // state.pagination = paginationNull;
Object.assign(state.pagination,paginationNull)
state.currentTab = e.index; state.currentTab = e.index;
state.pagination.list = []
getOrderList(); getOrderList();
} }
@ -191,7 +193,7 @@
// //
const { code } = await OrderApi.receiveOrder(order.id); const { code } = await OrderApi.receiveOrder(order.id);
if (code === 0) { if (code === 0) {
state.pagination = paginationNull; Object.assign(state.pagination,paginationNull);
await getOrderList(); await getOrderList();
} }
} }
@ -315,7 +317,7 @@
// //
onPullDownRefresh(() => { onPullDownRefresh(() => {
state.pagination = paginationNull; Object.assign(state.pagination,paginationNull);
getOrderList(); getOrderList();
setTimeout(function() { setTimeout(function() {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
@ -456,4 +458,4 @@
.info-color { .info-color {
color: #999999; color: #999999;
} }
</style> </style>