个人中先完善

zhc4dev
wangjiadong 2 years ago
parent bcbbd8b52c
commit ccad7efe2d
  1. 24
      ant-design-vue-jeecg/src/views/shopping/components/collection.vue
  2. 7
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/ApeopersionController.java

@ -9,7 +9,10 @@
<div class="c_75 f_12">{{item.styleNames}}</div>
<div class="c_75 f_12">{{item.address}}</div>
<div class="c_75 f_12">{{item.ordersNum}}</div>
<a class="button1 f_12">删除</a>
<!--<a class="button1 f_12">删除</a>-->
<a-popconfirm class="button1 f_12" title="确定删除吗?" @confirm="() => delteys(item.id)">
<a>删除</a>
</a-popconfirm>
<div class="button2 f_12 c_fff" @click="ingwc(item.id)">加入购物袋</div>
</div>
<div class="more d-flex">
@ -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 {
}
});

@ -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("添加完成");
}
}

Loading…
Cancel
Save