Huanyuyuehui/api/points_mall.js

62 lines
1.4 KiB
JavaScript

import request from "@/utils/request.js";
/**
* 积分商城--banner和金刚区
*/
export function getIntegralHome() {
return request.get("points/home",{},{noAuth: true});
}
/**
* 积分商城--积分兑换区间
*/
export function getIntegralScope() {
return request.get("points/scope",{},{noAuth: true});
}
/**
* 积分商城--商品列表
*/
export function getIntegralGoodsList(data) {
return request.get("points/lst",data,{noAuth: true});
}
/**
* 积分商城--商品列表
*/
export function getIntegralProductDetail(id) {
return request.get(`points/detail/${id}`,{},{noAuth: true});
}
/**
* 积分商城--生成订单
*/
export function integralOrderConfirm(data) {
return request.post(`order/v3/check`,data,{noAuth: true});
}
/**
* 积分商城--下单
*/
export function integralOrderCreate(data) {
return request.post(`order/v3/create`,data,{noAuth: true});
}
/**
* 积分商城--订单列表
*/
export function integralOrderList(data) {
return request.get(`points/order/lst`,data,{noAuth: true});
}
/**
* 积分商城--订单详情
*/
export function integralOrderDetail(id) {
return request.get(`points/order/detail/${id}`,{},{noAuth: true});
}
/**
* 积分商城--订单详情
*/
export function integralOrderTake(id) {
return request.post(`points/order/take/${id}`,{},{noAuth: true});
}
/**
* 积分商城--删除
*/
export function integralOrderDelete(id) {
return request.post(`points/order/deleate/${id}`,{},{noAuth: true});
}