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

48 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-09-22 11:37:39 +08:00
import request from "../../request.js"
2023-09-22 11:08:14 +08:00
//签到
export function signIn(patientId) {
return request({
url: `/nurseApplet/patientInfo/signIn?patientId=${patientId}&signInChannel=WECHAT_APPLET`,
2023-10-13 17:32:38 +08:00
method: 'post',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
2023-09-22 11:08:14 +08:00
})
}
//积分
export function selectPatientSignIn(patientId) {
return request({
url: `/nurseApplet/patientInfo/selectPatientSignIn?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 selectExchangeGoods(pageNum, pageSize) {
return request({
url: `/nurseApplet/patientInfo/selectExchangeGoods?pageNum=${pageNum}&pageSize=${pageSize}`,
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 integralGoodsOrder(data) {
return request({
url: `/nurseApplet/patientInfo/integralGoodsOrder`,
method: 'post',
2023-10-27 15:37:24 +08:00
data,
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
2023-09-22 11:08:14 +08:00
})
}