Merge branch 'master' of https://codeup.aliyun.com/bsdtec/biz-mobile-react-cloud
This commit is contained in:
commit
a619a7c3fd
2 files changed
+4
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user