api.js 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. import request from '@/request/index.js'
  2. // 获取key
  3. export function getKey(params, boolean){
  4. return request.get('/xcx/api/mobile/getappid', params, boolean)
  5. }
  6. // 获取密钥code
  7. export function getCode(params, boolean){
  8. return request.get('/xcx/m/api/code', params, boolean)
  9. }
  10. // 登录
  11. export function login(params){
  12. return request.get('/xcx/api/mobile/login', params)
  13. }
  14. // 获取验证码
  15. export function sendCode(params, boolean){
  16. return request.post('/xcx/api/mobile/code', params, boolean)
  17. }
  18. // 解析手机号
  19. export function getMobile(params, boolean){
  20. return request.get('/xcx/api/mobile/getdatainfo', params, boolean)
  21. }
  22. // 解析手机号
  23. export function bindMobile(params, boolean){
  24. return request.get('/xcx/api/mobile/register', params, boolean)
  25. }
  26. // 获取上周 本周 下周排班 模式
  27. export function getSchedule(params, boolean){
  28. return request.get('/xcx/api/mobile/schedule', params, boolean)
  29. }
  30. // 获取电子病历
  31. export function getRecord(params, boolean){
  32. return request.get('/xcx/api/mobile/getpatientinfo', params, boolean)
  33. }
  34. // 获取机构
  35. export function getOrg(params, boolean){
  36. return request.get('/xcx/api/mobile/getorginfo', params, boolean)
  37. }
  38. // 获取透析记录
  39. export function getDialysisRecord(params, boolean){
  40. return request.get('/xcx/api/mobile/dialysis', params, boolean)
  41. }
  42. // 获取医嘱
  43. export function getAdvice(params, boolean){
  44. return request.get('/xcx/api/mobile/getdoctoradvice', params, boolean)
  45. }
  46. // 获取宣教信息
  47. export function getEducation(params, boolean){
  48. return request.get('/xcx/api/mobile/geteducation', params, boolean)
  49. }
  50. // 获取机构人员
  51. export function getDoctor(params, boolean){
  52. return request.get('/xcx/api/mobile/getdoctorname', params, boolean)
  53. }
  54. // 获取显示配置
  55. export function getFieldConfig(params, boolean){
  56. return request.get('/xcx/api/moible/getfieldconfig', params, boolean)
  57. }
  58. // 获取数据字典数据
  59. export function getDataConfig(params, boolean){
  60. return request.get('/xcx/api/mobile/getdataconfig', params, boolean)
  61. }
  62. // 获取检验检查
  63. export function getInspection(params, boolean){
  64. return request.get('/xcx/api/mobile/getinspectionlist', params, boolean)
  65. }
  66. // 获取检验检查详情
  67. export function getInspectioninfo(params, boolean){
  68. return request.get('/xcx/api/mobile/getinspectioninfo', params, boolean)
  69. }
  70. // 获取精选故事
  71. export function getStoryScore(params, boolean){
  72. return request.get('/xcx/api/mobile/getstoryscore', params, boolean)
  73. }
  74. // 获取肾友杯列表
  75. export function getArticList(params, boolean){
  76. return request.get('/xcx/api/mobile/getarticlist', params, boolean)
  77. }
  78. // 获取肾友杯列表详情
  79. export function getArticListDetail(params, boolean){
  80. return request.get('/xcx/api/mobile/getarticlistdetail', params, boolean)
  81. }
  82. // 获取用户体重信息
  83. export function getweight(start,end,patient_id,org_id){
  84. return request.get('/xcx/api/mobile/signweight', start,end,patient_id,org_id)
  85. }
  86. // 获取血压体重信息
  87. export function getbloods(start,end,patient_id,org_id){
  88. return request.get('/xcx/api/mobile/signblood', start,end,patient_id,org_id)
  89. }
  90. // 获取预交金信息
  91. export function getgetbalance(patient_id,org_id){
  92. return request.get('/xcx/api/mobile/getbalance', patient_id,org_id)
  93. }
  94. // 获取预交金流水信息
  95. export function getgetbalanceinfo(start,end,patient_id,org_id){
  96. return request.get('/xcx/api/mobile/getbalanceinfo', start,end,patient_id,org_id)
  97. }