mui.plusReady(function() { var self = plus.webview.currentWebview(); var params = { code:self.code, patient:self.patient } sendPost("doctor/prescriptionInfo/getPrescription",params, function(){ mui.toast("获取数据失败") }, function(res){ if(res.status == 200){ var medi_html = template('medi_tmp',{v:res.data}) $("#medi_detail").html(medi_html).show(); }else{ mui.toast("获取数据失败") } },'get') template.helper('setSick',function(o){ var arr=[] $.map(o,function(item,index){ arr.push(item.name) }) return arr.join(',') }) })