diff --git a/api/store.js b/api/store.js index 85721a5..4cf9f04 100644 --- a/api/store.js +++ b/api/store.js @@ -144,6 +144,20 @@ export function changeCartNum(id, number) { }); } +/* + * 购物车 获取商品规格 + * */ +export function getCartGoodAttr(id, uniqueId) { + return request.get(`/product/attr/${id}?uniqueId=${uniqueId}`) +} + +/* + * 购物车 商品规格修改 + * */ +export function cartGoodChangeAttr(data) { + return request.post('/cart/changeAttr', data) +} + /** * 搜索推荐关键字 */ diff --git a/pages/cart.vue b/pages/cart.vue index 7d73c9c..518428a 100644 --- a/pages/cart.vue +++ b/pages/cart.vue @@ -84,7 +84,7 @@ >{{ good['productInfo']['storeName'] }} 规格:{{ good['productInfo']['attrInfo']['sku'] }} @@ -144,6 +144,61 @@ 结算 + + + + + + + + + + + + {{ currGood.productInfo.storeName }} + + + {{ currGoodAttr.price }} + + + + + + + {{ item.attrName }} + + + {{ attr.attr }} + + + + + + + 确认 + + + +