update api

This commit is contained in:
2020-06-29 08:47:37 +08:00
parent 28e80b49ff
commit 905022e6e4
9 changed files with 209 additions and 79 deletions

View File

@@ -19,6 +19,19 @@ export default {
getCartTreeList() {
return vm.$u.post('cart/cartTreeList');
},
// 添加购物车
addCart({ goods_id, quantity }) {
return vm.$u.post('cart/cartAdd', {
goods_id: goods_id,
quantity: quantity
});
},
// 购物车删除商品
deleteCart({ id }) {
return vm.$u.post('cart/cartDel', {
cart_id: id
});
}
}
}