From e45372d4b6f64ac088335d7ffa6b44952d1b8bda Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 30 Aug 2023 19:14:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=EF=BC=9A=E6=8E=A5?= =?UTF-8?q?=E5=85=A5=E4=BF=AE=E6=94=B9=E6=95=B0=E9=87=8F=20API=EF=BC=8C?= =?UTF-8?q?=E5=89=A9=E4=BD=99=E6=89=80=E6=9C=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/product/favorite.js | 7 + pages/order_addcart/order_addcart.vue | 548 ++++++++++++-------------- 2 files changed, 263 insertions(+), 292 deletions(-) diff --git a/api/product/favorite.js b/api/product/favorite.js index 7c552305..b217f6bf 100644 --- a/api/product/favorite.js +++ b/api/product/favorite.js @@ -19,6 +19,13 @@ export function createFavorite(spuId) { }); } +// 添加多个商品收藏 +export function createFavoriteList(spuIds) { + return request.post('app-api/product/favorite/create-list', { + spuIds + }); +} + // 取消商品收藏 export function deleteFavorite(spuId) { return request.delete('app-api/product/favorite/delete', { diff --git a/pages/order_addcart/order_addcart.vue b/pages/order_addcart/order_addcart.vue index 5e2d56e6..4c16d453 100644 --- a/pages/order_addcart/order_addcart.vue +++ b/pages/order_addcart/order_addcart.vue @@ -43,7 +43,6 @@ {{property.valueName}} ¥{{ fen2yuan(item.sku.price) }} - 请重新选择商品规格 重选 @@ -97,16 +96,16 @@ - + - + - + @@ -129,10 +128,18 @@ - - + + @@ -140,14 +147,16 @@