28 lines
752 B
JavaScript
28 lines
752 B
JavaScript
import { API } from './../../../utils/network/api'
|
|
let api = new API()
|
|
const app = getApp()
|
|
Page({
|
|
data: {
|
|
navbarData: {
|
|
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
|
title: '病历信息', //导航栏 中间的标题
|
|
},
|
|
height: app.globalData.height,
|
|
order_inquiry_id: "",
|
|
case_detail: {}
|
|
},
|
|
onLoad(options){
|
|
this.setData({
|
|
order_inquiry_id: options.order_inquiry_id
|
|
})
|
|
},
|
|
onShow(){
|
|
//获取患者问诊病例
|
|
api.getDoctorInquiryCase({order_inquiry_id: this.data.order_inquiry_id}).then(response => {
|
|
console.log(response);
|
|
this.setData({
|
|
case_detail: response.data
|
|
})
|
|
}).catch(errors => {console.error(errors);})
|
|
}
|
|
}) |