update api
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user