修改购物车数量显示不一致问题
This commit is contained in:
parent
14826e746d
commit
ad58591164
@ -177,7 +177,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getShopdetail() {
|
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.carNum = res.total;
|
||||||
// 合并当日达和普通商品数据
|
// 合并当日达和普通商品数据
|
||||||
this.goodsDetail = [].concat(res.same_day_cart_list, res.normal_cart_list)
|
this.goodsDetail = [].concat(res.same_day_cart_list, res.normal_cart_list)
|
||||||
|
|||||||
@ -677,7 +677,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getShopCarList() {
|
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)
|
this.carOrderList = [].concat(res.same_day_cart_list, res.normal_cart_list)
|
||||||
.flatMap(supplier => supplier.commodity_cart_and_goods_model);
|
.flatMap(supplier => supplier.commodity_cart_and_goods_model);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user