修改购物车数量显示不一致问题

This commit is contained in:
赵毅 2025-09-05 16:11:40 +08:00
parent 14826e746d
commit ad58591164
2 changed files with 10 additions and 4 deletions

View File

@ -177,7 +177,10 @@ export default {
})
},
getShopdetail() {
return request(shopApi.getCar, "POST").then((res) => {
const params = {
is_group_buy: 1,
}
return request(shopApi.getCar, "POST", params).then((res) => {
this.carNum = res.total;
//
this.goodsDetail = [].concat(res.same_day_cart_list, res.normal_cart_list)

View File

@ -677,7 +677,10 @@ export default {
},
getShopCarList() {
return request(apiArr.getCar, "POST", {}).then((res) => {
const params = {
is_group_buy: 1,
}
return request(apiArr.getCar, "POST", params).then((res) => {
//
this.carOrderList = [].concat(res.same_day_cart_list, res.normal_cart_list)
.flatMap(supplier => supplier.commodity_cart_and_goods_model);
@ -813,8 +816,8 @@ export default {
onLoad(options) {
this.itemObj = JSON.parse(decodeURIComponent(options.item));
const meun = menuButtonInfo();
this.top = meun.top;
this.localHeight = meun.height;
this.top = meun.top;
this.localHeight = meun.height;
this.id = this.itemObj.commodity_id ? this.itemObj.commodity_id : this.itemObj.id;
this.groupById = this.itemObj.groupById
if (this.itemObj.commodity_id) {