common.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //咨询列表查询接口
  2. var data = {};
  3. data.patientCode = "222"
  4. data.status = 1 //咨询状态 1未结束,2已结束,-1 已取消
  5. data.page = 1;
  6. data.size = 15;
  7. mui.get("http://192.168.5.133:8080/ssgg/patient/consult/list", data, function(res){
  8. console.info(res);
  9. if(res.status == '200'){
  10. /*mui.openWindow({
  11. url: 'phone-consulting-register-success.html',
  12. id: 'phone-consulting-register-success'
  13. });*/
  14. }
  15. });
  16. //聊天发送接口
  17. var data = {};
  18. data.consult = "11";
  19. data.content = "22";
  20. mui.post("http://192.168.5.133:8080/ssgg/patient/consult/reply", data, function(res){
  21. console.info(res);
  22. if(res.status == '200'){
  23. /*mui.openWindow({
  24. url: 'phone-consulting-register-success.html',
  25. id: 'phone-consulting-register-success'
  26. });*/
  27. }
  28. });
  29. //聊天记录查询
  30. var data = {};
  31. data.consult = "11";
  32. data.doctorCode = "22";
  33. data.page = 1;
  34. data.pageSize = 15;
  35. mui.post("http://192.168.5.133:8080/ssgg/patient/consult/record", data, function(res){
  36. console.info(res);
  37. if(res.status == '200'){
  38. /*mui.openWindow({
  39. url: 'phone-consulting-register-success.html',
  40. id: 'phone-consulting-register-success'
  41. });*/
  42. }
  43. });
  44. //网络评价接口
  45. var data = {};
  46. data.doctorCode = "22";
  47. data.userCode = "33";
  48. data.uname = "r4";
  49. data.content = "好";
  50. data.star = "5";
  51. mui.post("http://192.168.5.133:8080/ssgg/patient/consult/comment_commit", data, function(res){
  52. console.info(res);
  53. if(res.status == '200'){
  54. /*mui.openWindow({
  55. url: 'phone-consulting-register-success.html',
  56. id: 'phone-consulting-register-success'
  57. });*/
  58. }
  59. });
  60. //我的随访列表接口
  61. var data = {};
  62. data.patientCode = "111";
  63. data.page = 1;
  64. data.size = 15;
  65. mui.post("http://192.168.5.133:8080/ssgg/patient/followup/record", data, function(res){
  66. console.info(res);
  67. if(res.status == '200'){
  68. /*mui.openWindow({
  69. url: 'phone-consulting-register-success.html',
  70. id: 'phone-consulting-register-success'
  71. });*/
  72. }
  73. });