diff --git a/pages/restaurant/home/shop_home/components/shop-cart/shop-cart.vue b/pages/restaurant/home/shop_home/components/shop-cart/shop-cart.vue index a65b455..9482a7f 100644 --- a/pages/restaurant/home/shop_home/components/shop-cart/shop-cart.vue +++ b/pages/restaurant/home/shop_home/components/shop-cart/shop-cart.vue @@ -559,7 +559,7 @@ console.log(item['sku'],'当前sku'); // 原价 + 加料价格 item['adj_pay'] = (+item['product_price']) + (+item['add_price']); - Price += item['adj_pay'] * item['num']; + Price += item['bt_price'] * item['num']; newArr.push(item); console.log(this['GetCartList'][id],'是否规格商品'); // 此处逻辑是将同商品下的不同规格数据取出来 @@ -579,7 +579,7 @@ add_price: _item?.add_price?_item['add_price']:0 }; _item['adj_pay'] = (+_item['product_price']) + (+_item['add_price']); - Price += _item['adj_pay'] * _item['num']; + Price += _item['bt_price'] * _item['num']; this['GetCartList'][id]['Differentskulist'][i] = _item; }; newArr.push(...this['GetCartList'][id]['Differentskulist']); diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 8e3f656..11ab4e5 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@