api.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // console.log(uni.$u)
  2. // const {
  3. // http
  4. // } = uni.$u
  5. import {
  6. http,
  7. toast
  8. } from '@/uni_modules/uview-plus'
  9. // 获取用户信息
  10. export const getUserInfoUrl = (data) => http.get('/prod-api/api/wechat/getInfo', data);
  11. // 登录
  12. export const loginUrl = (data) => http.get('/prod-api/api/wechat/login', data);
  13. // 绑定信息
  14. export const bindInfoUrl = (data) => http.get('/prod-api/api/wechat/bindPhone', data);
  15. // 提交
  16. export const applyUrl = (params, config = {}) => http.post('/prod-api/care/applications', params, config);
  17. // 修改
  18. export const applyModifyUrl = (params, config = {}) => http.put('/prod-api/care/applications', params, config);
  19. // 获取申请人列表
  20. export const getPersonListUrl = (data) => http.get('/prod-api/care/persons/applist', data);
  21. // 获取所在医院列表
  22. export const getHospitalListUrl = (data) => http.get('/prod-api/care/hospital/list', data);
  23. // 上传
  24. export const uploadAvatarUrl = (params, config = {}) => http.upload('/prod-api/system/user/profile/avatar', params,
  25. config);
  26. // 上传
  27. export const uploadImgUrl = (data) => {
  28. // console.log('config11', data);
  29. return http.upload('/prod-api/common/upload', data);
  30. }
  31. // 获取未读消息数
  32. export const getMsgCountUrl = (data) => http.get('/prod-api/system/notice/myNoticeList', data);
  33. // 修改消息
  34. export const modifyMsgUrl = (params, config = {}) => http.post('/prod-api/system/notice/setIsRead', params, config);
  35. // 账号密码登录
  36. export const loginByPwdUrl = (params, config = {}) => http.post('/prod-api/api/wechat/wxlogin', params, config);
  37. // 获取街道列表
  38. export const getStreetListUrl = (data) => http.get('/prod-api/system/dept/list', data);
  39. // 修改个人信息
  40. export const updateUserInfoUrl = (params, config = {}) => http.put('/prod-api/system/user/profile',
  41. params, config);
  42. // 修改密码
  43. export const updateUserPwdUrl = (params, config = {}) => http.put('/prod-api/system/user/profile/updatePwd',
  44. params, config);
  45. // 出院审核
  46. export const leaveCheckUrl = (params, config = {}) => http.post('/prod-api/care/applications/completeCheck',
  47. params, config);
  48. // 注册
  49. export const registerUrl = (params, config = {}) => http.post('/xc-order/api//order/user/register', params, config);
  50. // 查询消息列表
  51. export const getMessageListUrl = (params, config = {}) => http.post('/xc-order/api/order/message/messageList', params,
  52. config);
  53. // 修改个人信息
  54. export const modifyUserInfoUrl = (params, config = {}) => http.post('/xc-order/api/order/user/updateUser', params,
  55. config);
  56. // 获取预约日期信息
  57. export const getDateInfoUrl = (data) => http.get('/xc-order/api/order/orderQuantum/getQuantumDateList', data);
  58. // 根据日期获取预约数据
  59. export const getInfoByDateUrl = (data) => http.get('/xc-order/api/order/orderQuantum/getQuantumList', data);
  60. // 提交预约
  61. export const submitReversationUrl = (params, config = {}) => http.post('/xc-order/api/order/business/submitOrder',
  62. params,
  63. config);
  64. // 获取预约列表
  65. export const getReservationListUrl = (data) => http.get('/xc-order/api/order/business/getOrderBusinessList', data);
  66. // 取消预约
  67. export const cancelReservationUrl = (params, config = {}) => http.put('/xc-order/api/order/business/cancelOrder',
  68. params, config);
  69. // 修改密码
  70. export const changePwdUrl = (params, config = {}) => http.put('/system/user/resetPwdByUser', params, config);
  71. // 获取村社列表
  72. export const getVillageUrl = (data) => http.get('/system/user/deptTree', data);
  73. // 实名认证
  74. export const authUrl = (params, config = {}) => http.put('/system/user/realName', params, config);
  75. // 新增助学申请
  76. export const addApplyUrl = (params, config = {}) => http.post('/deal/dmsStudyHelp', params, config);
  77. // 助学申请列表
  78. export const getApplyList = (data) => http.get('/deal/dmsStudyHelp/list', data);
  79. // 助学申请详情
  80. export const getApplyDetailUrl = (data) => http.get('/deal/dmsStudyHelp/' + data.id, data);
  81. // 修改暂存
  82. export const modifyApplyUrl = (params, config = {}) => http.put('/deal/dmsStudyHelp', params, config);
  83. // 删除申请详情
  84. export const deleteApplyUrl = (data) => http.delete('/deal/dmsStudyHelp/' + data.id, data);
  85. // 查询是否有未读消息
  86. export const hasUnReadMessageUrl = (data) => http.get('/deal/messageInfo/isRead', data);
  87. // 进度节点列表
  88. export const getProcessNodeUrl = (data) => http.get('/deal/processInfo/list', data);