From 11f601a0d48e04f8026746b7e9689746c6859498 Mon Sep 17 00:00:00 2001 From: xiaofeng Date: Wed, 10 Jul 2019 22:44:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=88=91=E7=9A=84=E6=94=B6?= =?UTF-8?q?=E8=97=8F=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile-web/src/api/user.js | 16 ++++++------- mobile-web/src/page/user/favorite/list.vue | 24 +++++++++++-------- .../UserProductSpuCollectionsMapper.xml | 1 - 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/mobile-web/src/api/user.js b/mobile-web/src/api/user.js index ae6d70b8..52dfacbb 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 44966336..efa611cb 100644 --- a/mobile-web/src/page/user/favorite/list.vue +++ b/mobile-web/src/page/user/favorite/list.vue @@ -9,6 +9,7 @@
+ {{item.spuName}} 删除
@@ -17,7 +18,7 @@