xinelu-applet-ui/api/pagesB/appointmenttime/appointmenttime.js

43 lines
1.1 KiB
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 getAppPatientList(id) {
return request({
url: `/nurseApp/login/getAppPatientList?patientId=${id}`,
2023-10-13 15:17:41 +08:00
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
2023-09-22 11:08:14 +08:00
})
}
export function getAppStationItemInfo(stationId, stationItemId, stationItemPriceId) {
return request({
url: `/nurseApp/login/getAppStationItemInfo?stationId=${stationId}&stationItemId=${stationItemId}&stationItemPriceId=${stationItemPriceId}`,
2023-10-13 15:17:41 +08:00
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
2023-09-22 11:08:14 +08:00
})
}
export function submitAppointment(data) {
return request({
url: `/nurseApplet/login/appointment`,
method: 'post',
2023-10-13 15:17:41 +08:00
data,
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
2023-09-22 11:08:14 +08:00
})
}
// 小程序预约服务支付接口
export function appletAppointmentOrderPay(data) {
return request({
url: `/nurseApp/weChatPayment/appletAppointmentOrderPay`,
method: 'post',
2023-10-19 13:27:14 +08:00
data,
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
2023-09-22 11:08:14 +08:00
})
}