feat: 普通商品售后订单隐藏、查看物流展示

This commit is contained in:
2026-08-10 13:37:06 +08:00
parent 50c4a7168f
commit 9c1e42fe48
4 changed files with 24 additions and 6 deletions
+11 -1
View File
@@ -206,8 +206,18 @@
: Array.isArray(pageData)
? pageData
: [];
const nextList =
const nextListRaw =
state.currentType === 1 ? list.map((o) => ({ ...o, __source: 'aishop' })) : list;
const isMallOrder = state.currentType === 0;
let nextList = isMallOrder && !isAfterSaleTab
? nextListRaw.map((order) => {
const items = Array.isArray(order?.items) ? order.items.filter((item) => Number(item?.afterSaleStatus ?? 0) === 0) : [];
return { ...order, items };
})
: nextListRaw;
if (isMallOrder && !isAfterSaleTab) {
nextList = nextList.filter((order) => Array.isArray(order?.items) && order.items.length > 0);
}
nextList.forEach((order) => handleOrderButtons(order));
if (mescroll.num == 1) state.list[mescroll.dataObj.i] = [];
state.list[mescroll.dataObj.i] = state.list[mescroll.dataObj.i].concat(nextList);