Huanyuyuehui/api/points_mall.js

62 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-03-21 18:05:36 +08:00
2024-03-21 17:52:58 +08:00
import request from "@/utils/request.js";
/**
2024-05-08 17:48:33 +08:00
* 铸源星商城--banner和金刚区
2024-03-21 17:52:58 +08:00
*/
export function getIntegralHome() {
return request.get("points/home",{},{noAuth: true});
}
/**
2024-05-08 17:48:33 +08:00
* 铸源星商城--铸源星兑换区间
2024-03-21 17:52:58 +08:00
*/
export function getIntegralScope() {
return request.get("points/scope",{},{noAuth: true});
}
/**
2024-05-08 17:48:33 +08:00
* 铸源星商城--商品列表
2024-03-21 17:52:58 +08:00
*/
export function getIntegralGoodsList(data) {
return request.get("points/lst",data,{noAuth: true});
}
/**
2024-05-08 17:48:33 +08:00
* 铸源星商城--商品列表
2024-03-21 17:52:58 +08:00
*/
export function getIntegralProductDetail(id) {
return request.get(`points/detail/${id}`,{},{noAuth: true});
}
/**
2024-05-08 17:48:33 +08:00
* 铸源星商城--生成订单
2024-03-21 17:52:58 +08:00
*/
export function integralOrderConfirm(data) {
return request.post(`order/v3/check`,data,{noAuth: true});
}
/**
2024-05-08 17:48:33 +08:00
* 铸源星商城--下单
2024-03-21 17:52:58 +08:00
*/
export function integralOrderCreate(data) {
return request.post(`order/v3/create`,data,{noAuth: true});
}
/**
2024-05-08 17:48:33 +08:00
* 铸源星商城--订单列表
2024-03-21 17:52:58 +08:00
*/
export function integralOrderList(data) {
return request.get(`points/order/lst`,data,{noAuth: true});
}
/**
2024-05-08 17:48:33 +08:00
* 铸源星商城--订单详情
2024-03-21 17:52:58 +08:00
*/
export function integralOrderDetail(id) {
return request.get(`points/order/detail/${id}`,{},{noAuth: true});
}
/**
2024-05-08 17:48:33 +08:00
* 铸源星商城--订单详情
2024-03-21 17:52:58 +08:00
*/
export function integralOrderTake(id) {
return request.post(`points/order/take/${id}`,{},{noAuth: true});
}
/**
2024-05-08 17:48:33 +08:00
* 铸源星商城--删除
2024-03-21 17:52:58 +08:00
*/
export function integralOrderDelete(id) {
return request.post(`points/order/deleate/${id}`,{},{noAuth: true});
}