From 22cd5160bf1a75d63e760a6397301056930eac9a Mon Sep 17 00:00:00 2001
From: lifizer <913626195@qq.com>
Date: Mon, 8 Apr 2024 17:35:39 +0800
Subject: [PATCH] =?UTF-8?q?Feat(=E8=B4=AD=E7=89=A9=E8=BD=A6):=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E5=88=87=E6=8D=A2=E8=A7=84=E6=A0=BC=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/store.js | 14 +++
pages/cart.vue | 297 ++++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 308 insertions(+), 3 deletions(-)
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 }}
+
+
+
+
+
+
+ 确认
+
+
+
+