purchase-let/api/cart.js

26 lines
636 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)=>{
2024-04-29 18:14:58 +08:00
return request.get('/order/cart/list', data);
}
//购物车-零售购物车预检
export const checkOrderApi = (data)=>{
return request.post('/order/RetailOrder/checkOrder', data);
2024-04-28 18:08:57 +08:00
}