修改购物车数量显示不一致问题
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);
|
||||||
@ -813,8 +816,8 @@ export default {
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.itemObj = JSON.parse(decodeURIComponent(options.item));
|
this.itemObj = JSON.parse(decodeURIComponent(options.item));
|
||||||
const meun = menuButtonInfo();
|
const meun = menuButtonInfo();
|
||||||
this.top = meun.top;
|
this.top = meun.top;
|
||||||
this.localHeight = meun.height;
|
this.localHeight = meun.height;
|
||||||
this.id = this.itemObj.commodity_id ? this.itemObj.commodity_id : this.itemObj.id;
|
this.id = this.itemObj.commodity_id ? this.itemObj.commodity_id : this.itemObj.id;
|
||||||
this.groupById = this.itemObj.groupById
|
this.groupById = this.itemObj.groupById
|
||||||
if (this.itemObj.commodity_id) {
|
if (this.itemObj.commodity_id) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user