优惠卷6.5

This commit is contained in:
zoujiandong
2024-06-05 16:59:33 +08:00
parent 0f6f973192
commit 6f02a10ed3
7 changed files with 631 additions and 89 deletions
+21 -4
View File
@@ -14,7 +14,7 @@ export function getCouponDetail(id){
}
export function addCoupon(data){//系统-新增系统优惠卷
return request({
url:'/admin/coupon/system/',
url:'/admin/coupon/system',
method: 'post',
data
})
@@ -33,13 +33,21 @@ export function getCouponDetail(id){
data
})
}
export function getUserCouponList(data){
export function getUserCouponList(data){//用户优惠卷列表
return request({
url:'/admin/coupon/user/page',
method: 'post',
data
})
}
export function getPatientList(params){
return request({
url:'/admin/patient/list',
method:'get',
params
})
}
export function giveCoupon(id,data){//系统-发放系统优惠卷
return request({
url:'/admin/coupon/system/grant/'+id,
@@ -47,9 +55,18 @@ export function getCouponDetail(id){
data
})
}
export function getProduct(){//系统-发放系统优惠卷
export function getProduct(params){//系统-发放系统优惠卷
return request({
url:'admin/product/list',
method: 'post'
method: 'get',
params
})
}
export function exportService(data){//导出
return request({
url:'/admin/export/order/service',
method: 'post',
data
})
}