purchase-let/api/cart.js

32 lines
782 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);
}
2024-04-30 16:24:55 +08:00
//购物车-常买记录
export const frequentlyPurchaseApi = (data)=>{
return request.get('/order/RetailOrder/frequently_purchase', data);
}
2024-04-29 18:14:58 +08:00
//购物车-零售购物车预检
export const checkOrderApi = (data)=>{
return request.post('/order/RetailOrder/checkOrder', data);
2024-05-06 14:54:47 +08:00
}