xinelu-applet-ui/api/pagesB/materialbenefits/index.js

25 lines
652 B
JavaScript
Raw Normal View History

2024-06-25 18:25:50 +08:00
import request from "@/api/request.js"
2023-09-22 11:08:14 +08:00
//新人优惠券
export function couponByUseStatus(pageNum, pageSize, patientId) {
return request({
url: `/nurseApplet/patientInfo/couponByUseStatus?pageNum=${pageNum}&pageSize=${pageSize}&patientId=${patientId}`,
2023-10-13 17:32:38 +08:00
method: 'get',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
2023-09-22 11:08:14 +08:00
})
}
//领取
export function insertCouponReceive(patientId, couponId) {
return request({
url: `/nurseApplet/patientInfo/insertCouponReceive?patientId=${patientId}&couponId=${couponId}`,
2023-10-13 17:32:38 +08:00
method: 'post',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
2023-09-22 11:08:14 +08:00
})
}