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 @@