var d = dialog({ contentType: 'load', skin: 'bk-popup' }); var request = GetRequest(); var code = request.code; //从链接中获得处方code $(function(){ getDetail(); bindEvents(); }); //获取续方详情信息 function getDetail(){ d.show(); var url = "/patient/prescriptionInfo/getContinuedPrescription", params = {code: code}; sendPost(url, params, 'json', 'get', queryFailed, function(res){ if(res.status == 200){ d.close(); $("#dateTime").text(res.data.prescription.createTime); $("#docName").text(res.data.prescription.doctorName); $("#deptName").text(res.data.prescription.hospitalName); $("#caDoc").text(res.data.prescription.doctorName); var deseaseText = ""; for(i=0; i