From 67177217251ae5fceae67da0560edbe9c6a657e1 Mon Sep 17 00:00:00 2001 From: chc <1501738723@qq.com> Date: Mon, 15 May 2023 14:34:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=BA=97=E9=93=BA?= =?UTF-8?q?=E6=94=B6=E8=97=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/members.js | 16 ++++++++++++++++ pages/mine/myCollect.vue | 5 +++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/api/members.js b/api/members.js index 153941a..e198238 100644 --- a/api/members.js +++ b/api/members.js @@ -202,6 +202,22 @@ export function getGoodsCollection(params, type) { }); } +/** + * 获取商品收藏 + * @param params + * @returns {AxiosPromise} + */ +export function getStoreCollection(params, type) { + return http.request({ + url: `/member/storeCollection/${type}`, + method: Method.GET, + needToken: true, + loading: false, + message: false, + params, + }); +} + /** * 收藏商品 * @returns {AxiosPromise} diff --git a/pages/mine/myCollect.vue b/pages/mine/myCollect.vue index 7191f68..036d676 100644 --- a/pages/mine/myCollect.vue +++ b/pages/mine/myCollect.vue @@ -64,6 +64,7 @@