feat:添加店铺订单详情api
This commit is contained in:
@@ -169,11 +169,12 @@
|
||||
}
|
||||
const pageData = dataList.value?.[mescroll.dataObj.i] || {};
|
||||
const list = Array.isArray(pageData?.list) ? pageData.list : Array.isArray(pageData) ? pageData : [];
|
||||
list.forEach((order) => handleOrderButtons(order));
|
||||
const nextList = state.currentType === 1 ? list.map((o) => ({ ...o, __source: 'aishop' })) : list;
|
||||
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(list);
|
||||
state.list[mescroll.dataObj.i] = state.list[mescroll.dataObj.i].concat(nextList);
|
||||
if (cardPages.value) {
|
||||
cardPages.value.getState(true, list.length);
|
||||
cardPages.value.getState(true, nextList.length);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,6 +199,7 @@
|
||||
const navChangeType = (i) => {
|
||||
state.currentType = i;
|
||||
state.currentTab = 0;
|
||||
state.list = {};
|
||||
downCallback(state.currentTab);
|
||||
};
|
||||
const downCallback = () => {
|
||||
|
||||
Reference in New Issue
Block a user