After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 6.7 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 4.5 KiB |
@ -0,0 +1,165 @@ |
|||||
|
import { HTTP, Method} from '../utils/http.js' |
||||
|
const url = { |
||||
|
service_list:'/api/serverType/serverTypeList', |
||||
|
service_detail:'/api/serverType/serverTypeDetail', |
||||
|
user_info:'/api/miniuser/getInfo', |
||||
|
depart_list:'/api/appointmentDetail/departList', |
||||
|
vip_card:'/api/highTalent/cardShow', |
||||
|
hosptial_list:'/api/hospitalDoctors/hospitalList', |
||||
|
doctor_list:'/api/hospitalDoctors/doctorsAndDeptList', |
||||
|
service_order:'/api/appointmentDetail/add', |
||||
|
apply:'/api/applyDetail/add', |
||||
|
time_range:'/api/appointmentDetail/holidays', |
||||
|
my_service:'/api/appointmentDetail/myAppointmentList', |
||||
|
appointment_detail:'/api/appointmentDetail/appointmentDetail' |
||||
|
} |
||||
|
class ServiceModel extends HTTP { |
||||
|
constructor () { |
||||
|
super() |
||||
|
} |
||||
|
|
||||
|
getService(success){ |
||||
|
let params = { |
||||
|
url:url.service_list, |
||||
|
method: Method.GET, |
||||
|
data: { |
||||
|
|
||||
|
}, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
} |
||||
|
|
||||
|
serviceDetail(code,success){ |
||||
|
let params = { |
||||
|
url:url.service_detail, |
||||
|
method: Method.POST, |
||||
|
data: { |
||||
|
serverCode:code |
||||
|
}, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
} |
||||
|
|
||||
|
getUserInfo(success){ |
||||
|
let params = { |
||||
|
url:url.user_info, |
||||
|
method: Method.GET, |
||||
|
data: { |
||||
|
// serverCode:code
|
||||
|
}, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
} |
||||
|
|
||||
|
getDepartList(code,success){ |
||||
|
let params = { |
||||
|
url:url.depart_list, |
||||
|
method: Method.GET, |
||||
|
data: { |
||||
|
serverCode:code |
||||
|
}, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
} |
||||
|
|
||||
|
vipCard(success){ |
||||
|
let params = { |
||||
|
url:url.vip_card, |
||||
|
method: Method.POST, |
||||
|
data: { |
||||
|
// serverCode:code
|
||||
|
}, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
|
||||
|
} |
||||
|
|
||||
|
getHosptialList(success){ |
||||
|
let params = { |
||||
|
url:url.hosptial_list, |
||||
|
method: Method.GET, |
||||
|
data: { |
||||
|
// serverCode:code
|
||||
|
}, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
} |
||||
|
|
||||
|
getDoctorList(hospital,success){ |
||||
|
let params = { |
||||
|
url:url.doctor_list, |
||||
|
method: Method.GET, |
||||
|
data: { |
||||
|
hospital:hospital |
||||
|
}, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
} |
||||
|
|
||||
|
serviceOrder(data,success){ |
||||
|
let params = { |
||||
|
url:url.service_order, |
||||
|
method: Method.POST, |
||||
|
data:data, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
} |
||||
|
|
||||
|
apply(data,success){ |
||||
|
let params = { |
||||
|
url:url.apply, |
||||
|
method: Method.POST, |
||||
|
data: data, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
} |
||||
|
|
||||
|
timeRange(code,success){ |
||||
|
let params = { |
||||
|
url:url.time_range, |
||||
|
method: Method.GET, |
||||
|
data: { |
||||
|
serverCode:code |
||||
|
}, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
} |
||||
|
|
||||
|
myService(page,success){ |
||||
|
let params = { |
||||
|
url:url.my_service, |
||||
|
method: Method.POST, |
||||
|
data: { |
||||
|
pageNo:page, |
||||
|
pageSize:10 |
||||
|
}, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
} |
||||
|
|
||||
|
appointmentDetail(id,success){ |
||||
|
let params = { |
||||
|
url:url.appointment_detail, |
||||
|
method: Method.GET, |
||||
|
data: { |
||||
|
id:id |
||||
|
}, |
||||
|
success: success |
||||
|
} |
||||
|
this.request(params) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
export { ServiceModel } |