fix: 代客下单商品列表接口修改,增加售罄,下架,不可售状态标识

This commit is contained in:
2025-03-27 13:36:07 +08:00
parent 0b5737116e
commit 059a40dd67
7 changed files with 49 additions and 7 deletions

View File

@@ -46,9 +46,6 @@ export const useCartsStore = defineStore("carts", () => {
const goods = useStorage<any[]>("Instead_goods", []);
async function getGoods(query: any) {
const res = await productApi.list({
page: 1,
size: 999,
status: "on_sale",
...query,
});
goods.value = res.filter((v: { type: string }) => v.type != 'coupon');