From 0d723b1f28234ad3784ecfe809df234cad41def9 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 25 Jun 2023 12:26:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=91=E7=9A=84=E6=94=B6=E8=97=8F?= =?UTF-8?q?=E3=80=91=201.=20=E5=AE=9E=E7=8E=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/product/favorite.js | 12 + pages/users/user_goods_collection/index.vue | 303 +++++++++----------- 2 files changed, 145 insertions(+), 170 deletions(-) diff --git a/api/product/favorite.js b/api/product/favorite.js index 33f40e23..b1f669e6 100644 --- a/api/product/favorite.js +++ b/api/product/favorite.js @@ -20,3 +20,15 @@ export function deleteFavorite(spuId) { spuId }); } + +// 获得商品收藏分页 +export function getFavoritePage(data) { + return request.get('app-api/product/favorite/page', data); +} + +// 取消多个商品收藏 +export function deleteFavoriteList(spuIds) { + return request.delete('app-api/product/favorite/delete-list', { + spuIds + }); +} diff --git a/pages/users/user_goods_collection/index.vue b/pages/users/user_goods_collection/index.vue index ea271a41..8e4fd2fa 100644 --- a/pages/users/user_goods_collection/index.vue +++ b/pages/users/user_goods_collection/index.vue @@ -1,7 +1,8 @@