diff --git a/mobile-web/src/api/user.js b/mobile-web/src/api/user.js index ae6d70b8c..52dfacbbc 100644 --- a/mobile-web/src/api/user.js +++ b/mobile-web/src/api/user.js @@ -1,18 +1,18 @@ import request from "../config/request"; -export function GetFavorite(data){ +export function GetFavoritePage(pageNo,pageSize){ return request({ - url: '/User/GetFavorite', - method: 'post', - params: { data } + url: '/user-api/users/favorite/page', + method: 'get', + params: { pageNo,pageSize } }) } -export function DelFavorite(id){ +export function DelFavorite(spuId){ return request({ - url: '/User/DelFavorite', - method: 'get', - params: { id:id } + url: '/user-api/users/favorite/remove', + method: 'DELETE', + params: { spuId } }) } diff --git a/mobile-web/src/page/user/favorite/list.vue b/mobile-web/src/page/user/favorite/list.vue index 44966336a..efa611cb9 100644 --- a/mobile-web/src/page/user/favorite/list.vue +++ b/mobile-web/src/page/user/favorite/list.vue @@ -9,6 +9,7 @@