tizhong-view-new.js 738 B

12345678910111213141516171819202122232425262728293031323334
  1. var patientCode = "";
  2. var self = null;
  3. mui.plusReady(function() {
  4. self = plus.webview.currentWebview();
  5. patientCode = self.code;
  6. var now = new Date()
  7. var year = now.getFullYear()
  8. var month = now.getMonth()+1
  9. var date = now.getDate()
  10. var params={
  11. patient:patientCode,
  12. page:1,
  13. pagesize:100,
  14. type:3,
  15. begin:(year*1-1)+'-'+month+'-'+date+' 00:00:00',
  16. end:year+'-'+month+'-'+date+' 23:59:59'
  17. }
  18. sendPost("doctor/health_index/list",params,function(){
  19. mui.toast("请求失败");
  20. }, function(res){
  21. if(res.status == 200){
  22. if(res.list.length>0){
  23. $('#no_result_wrap').hide()
  24. var html = template('tzList_tmp',{data:res.list})
  25. $('.tv-ul').html(html)
  26. }else{
  27. $('#no_result_wrap').show()
  28. }
  29. }
  30. })
  31. })