chufangxiangqing.js 702 B

1234567891011121314151617181920212223242526272829
  1. mui.plusReady(function() {
  2. var self = plus.webview.currentWebview();
  3. var params = {
  4. code:self.code,
  5. patient:self.patient,
  6. preCode: self.preCode
  7. }
  8. plus.nativeUI.showWaiting();
  9. sendPost("doctor/prescriptionInfo/getPrescription",params, function(){
  10. plus.nativeUI.closeWaiting();
  11. mui.toast("获取数据失败")
  12. }, function(res){
  13. if(res.status == 200){
  14. var medi_html = template('medi_tmp',{v:res.data})
  15. $("#medi_detail").html(medi_html).show();
  16. }else{
  17. mui.toast("获取数据失败")
  18. }
  19. plus.nativeUI.closeWaiting();
  20. },'get')
  21. template.helper('setSick',function(o){
  22. var arr=[]
  23. $.map(o,function(item,index){
  24. arr.push(item.name)
  25. })
  26. return arr.join(',')
  27. })
  28. })