This commit is contained in:
dzc committed 2025-01-09 20:50:43 +08:00
commit a619a7c3fd
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -141,7 +141,7 @@ onLoad((options: any) => {
});
onShow(async () => {
await getDetail();
// await getShopCar();
await getShopCar();
await getClassify();
});
@@ -151,7 +151,7 @@ const getDetail = async () => {
};
const getShopCar = async () => {
const { data } = await foodApi.getShopCar({ merchantId: state.detailId });
const { data } = await foodApi.getShopCar({ merchantId: state.merchantId, hardType: "SUPERMARKET" });
state.carList = data ?? [];
state.totPrice = state.carList.map((v) => v.totalPrice).reduce((pre, next) => pre + next, 0);
state.totCount = state.carList.map((v) => v.productCount).reduce((pre, next) => pre + next, 0);