purchase-let/api/cart.js

21 lines
511 B
JavaScript
Raw Normal View History

2024-04-28 18:08:57 +08:00
import request from '@/utils/request';
//添加购物车数量
export const cartCreateApi = (data)=>{
return request.post('/order/cart/create', data);
}
//购物车-调整数量
export const cartChangeApi = (data)=>{
return request.post('/order/cart/change', data);
}
//购物车-清空
export const cartDeleteApi = (data)=>{
return request.post('/order/cart/delete', data);
}
//购物车-零售列表
export const cartListApi = (data)=>{
return request.get('/order/RetailOrder/checkOrder', data);
}