服务预约
This commit is contained in:
parent
09247c0698
commit
585de51eff
38
api/pagesC/ServiceAppointment/ServiceAppointment.js
Normal file
38
api/pagesC/ServiceAppointment/ServiceAppointment.js
Normal file
@ -0,0 +1,38 @@
|
||||
import request from "../../request.js"
|
||||
|
||||
// 服务预约
|
||||
export function getForm(identity,region,projectName) {
|
||||
return request({
|
||||
url: `/applet/service/apply/getForm/${identity}?projectName=${projectName}`,
|
||||
method: 'GET',
|
||||
header: {
|
||||
region: region,
|
||||
// Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
},
|
||||
})
|
||||
}
|
||||
export function detail(data) {
|
||||
return request({
|
||||
url: '/applet/service/apply/save',
|
||||
method: 'post',
|
||||
data:data
|
||||
// header: {
|
||||
// region: region,
|
||||
// // Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
// },
|
||||
})
|
||||
}
|
||||
export function save(data) {
|
||||
return request({
|
||||
url: '/nurseApplet/screening/record/save',
|
||||
method: 'post',
|
||||
data:data
|
||||
// header: {
|
||||
// region: region,
|
||||
// // Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
// },
|
||||
})
|
||||
}
|
||||
|
||||
// 点击预约
|
||||
//
|
||||
@ -59,6 +59,7 @@
|
||||
methods: {
|
||||
getlist() {
|
||||
this.userinfo = uni.getStorageSync('userinfo');
|
||||
// this.identity=this.userinfo.cardNo
|
||||
this.region = this.userinfo.cityCode;
|
||||
getForm(this.identity, this.region, this.projectName).then(res => {
|
||||
// console.log(res, '555')
|
||||
@ -72,7 +73,7 @@
|
||||
},
|
||||
goapponint(item) {
|
||||
|
||||
|
||||
console.log(item,'56')
|
||||
uni.navigateTo({
|
||||
// url: '/pagesC/appointmenttime/appointmenttime',
|
||||
url: `/pagesC/appointmenttime/appointmenttime?item=${JSON.stringify(item)}`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user