From ccad7efe2d5a10083abee99dc96d2f2db69a311c Mon Sep 17 00:00:00 2001 From: wangjiadong <1654135867@qq.com> Date: Mon, 6 Mar 2023 14:59:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=85=88=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/shopping/components/collection.vue | 24 ++++++++++++++++--- .../controller/ApeopersionController.java | 7 ++++++ 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/shopping/components/collection.vue b/ant-design-vue-jeecg/src/views/shopping/components/collection.vue index 2a2646ec..b4eee799 100644 --- a/ant-design-vue-jeecg/src/views/shopping/components/collection.vue +++ b/ant-design-vue-jeecg/src/views/shopping/components/collection.vue @@ -9,7 +9,10 @@
{{item.styleNames}}
{{item.address}}
{{item.ordersNum}}
- 删除 + + + 删除 +
加入购物袋
@@ -146,7 +149,8 @@ url: { findallcg: "/getuserpersion/findallcg", - ingwc: "/getuserpersion/ingwc" + ingwc: "/getuserpersion/ingwc", + delteys: "/getuserpersion/delteys" }, @@ -160,6 +164,20 @@ console.log(item) item.flag = !item.flag }, + + + + delteys(id){ + getAction(this.url.delteys,{id,id}).then((res) => { + if(res.success) { + alert('宝贝已经添加到购物了,请查收'); + } else { + } + }); + }, + + + findallcg(){ getAction(this.url.findallcg).then((res) => { if(res.success) { @@ -175,7 +193,7 @@ ingwc(id){ getAction(this.url.ingwc,{id,id}).then((res) => { if(res.success) { - alert('宝贝已经添加到购物了,请查收'); + this.loadData(1); } else { } }); diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/ApeopersionController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/ApeopersionController.java index bd2b350b..5b04390d 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/ApeopersionController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/ApeopersionController.java @@ -153,4 +153,11 @@ public class ApeopersionController { return Result.ok("添加完成"); } + //个人中心的我的收藏的首页需要的数据 + @RequestMapping(value = "/delteys", method = RequestMethod.GET) + public Result delteys(@RequestParam(name = "id", required = true) String id) { + customercollectgoodsService.removeById(id); + return Result.ok("添加完成"); + } + }