2024-04-28 18:08:57 +08:00
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
|
|
//添加购物车数量
|
2024-06-03 18:25:34 +08:00
|
|
|
export const cartCreateApi = (data) => {
|
|
|
|
return request.post('/order/cart/create', data);
|
2024-04-28 18:08:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//购物车-调整数量
|
2024-06-03 18:25:34 +08:00
|
|
|
export const cartChangeApi = (data) => {
|
|
|
|
return request.post('/order/cart/change', data);
|
2024-04-28 18:08:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//购物车-清空
|
2024-06-03 18:25:34 +08:00
|
|
|
export const cartDeleteApi = (data) => {
|
|
|
|
return request.post('/order/cart/delete', data);
|
2024-04-28 18:08:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//购物车-零售列表
|
2024-06-03 18:25:34 +08:00
|
|
|
export const cartListApi = (data) => {
|
|
|
|
return request.get('/order/cart/list', data, {
|
|
|
|
noAuth: true
|
|
|
|
});
|
2024-04-29 18:14:58 +08:00
|
|
|
}
|
2024-09-03 17:14:27 +08:00
|
|
|
//购物车-批发列表
|
|
|
|
export const cartWholesaleListApi = (data) => {
|
|
|
|
return request.get('/order/cart/wholesale_lists', data, {
|
|
|
|
noAuth: true
|
|
|
|
});
|
|
|
|
}
|
2024-04-30 16:24:55 +08:00
|
|
|
//购物车-常买记录
|
2024-06-03 18:25:34 +08:00
|
|
|
export const frequentlyPurchaseApi = (data) => {
|
|
|
|
return request.get('/order/order/frequently_purchase', data);
|
2024-04-30 16:24:55 +08:00
|
|
|
}
|
|
|
|
|
2024-04-29 18:14:58 +08:00
|
|
|
//购物车-零售购物车预检
|
2024-06-03 18:25:34 +08:00
|
|
|
export const checkOrderApi = (data) => {
|
2024-06-05 18:45:30 +08:00
|
|
|
return request.post('/order/order/checkOrder', data);
|
2024-06-03 18:25:34 +08:00
|
|
|
}
|