diff --git a/api/trade/cart.js b/api/trade/cart.js index 6cfd3c5e..0e7f179b 100644 --- a/api/trade/cart.js +++ b/api/trade/cart.js @@ -4,8 +4,12 @@ export function addCart(data) { return request.post("app-api/trade/cart/add", data); } -export function updateCart(data) { - return request.put("app-api/trade/cart/update", data); +export function updateCartCount(data) { + return request.put("app-api/trade/cart/update-count", data); +} + +export function updateCartSelected(data) { + return request.put("app-api/trade/cart/update-selected", data); } export function resetCart(data) { diff --git a/pages/order_addcart/order_addcart.vue b/pages/order_addcart/order_addcart.vue index bfe452f0..5e2d56e6 100644 --- a/pages/order_addcart/order_addcart.vue +++ b/pages/order_addcart/order_addcart.vue @@ -22,11 +22,11 @@ - - {{ item.spu.name }} - 属性: + 属性: {{property.valueName}} ¥{{ fen2yuan(item.sku.price) }} @@ -139,7 +139,7 @@