api.js 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. const {
  2. http
  3. } = uni.$u
  4. // 获取用户信息
  5. export const getUserInfoUrl = (data) => http.get('/dev-api/api/wechat/getInfo', data);
  6. // 登录
  7. export const loginUrl = (data) => http.get('/dev-api/api/wechat/login', data);
  8. // 绑定信息
  9. export const bindInfoUrl = (data) => http.get('/dev-api/api/wechat/bindPhone', data);
  10. // 提交
  11. export const applyUrl = (params, config = {}) => http.post('/dev-api/care/applications', params, config);
  12. // 获取申请人列表
  13. export const getPersonListUrl = (data) => http.get('/dev-api/care/persons/list', data);
  14. // 获取所在医院列表
  15. export const getHospitalListUrl = (data) => http.get('/dev-api/care/hospital/list', data);
  16. // 注册
  17. export const registerUrl = (params, config = {}) => http.post('/xc-order/api//order/user/register', params, config);
  18. // 获取未读消息数
  19. export const getMsgCountUrl = (data) => http.get('/xc-order/api/order/message/getNotReadNum', data);
  20. // 修改消息
  21. export const modifyMsgUrl = (data) => http.get('/xc-order/api/order/message/isRead', data);
  22. // 查询消息列表
  23. export const getMessageListUrl = (params, config = {}) => http.post('/xc-order/api/order/message/messageList', params,
  24. config);
  25. // 修改个人信息
  26. export const modifyUserInfoUrl = (params, config = {}) => http.post('/xc-order/api/order/user/updateUser', params,
  27. config);
  28. // 获取预约日期信息
  29. export const getDateInfoUrl = (data) => http.get('/xc-order/api/order/orderQuantum/getQuantumDateList', data);
  30. // 根据日期获取预约数据
  31. export const getInfoByDateUrl = (data) => http.get('/xc-order/api/order/orderQuantum/getQuantumList', data);
  32. // 提交预约
  33. export const submitReversationUrl = (params, config = {}) => http.post('/xc-order/api/order/business/submitOrder',
  34. params,
  35. config);
  36. // 获取预约列表
  37. export const getReservationListUrl = (data) => http.get('/xc-order/api/order/business/getOrderBusinessList', data);
  38. // 取消预约
  39. export const cancelReservationUrl = (params, config = {}) => http.put('/xc-order/api/order/business/cancelOrder',
  40. params, config);
  41. // 修改密码
  42. export const changePwdUrl = (params, config = {}) => http.put('/system/user/resetPwdByUser', params, config);
  43. // 获取村社列表
  44. export const getVillageUrl = (data) => http.get('/system/user/deptTree', data);
  45. // 实名认证
  46. export const authUrl = (params, config = {}) => http.put('/system/user/realName', params, config);
  47. // 上传
  48. export const uploadImgUrl = (params, config = {}) => http.upload('/common/upload', params, config);
  49. // 新增助学申请
  50. export const addApplyUrl = (params, config = {}) => http.post('/deal/dmsStudyHelp', params, config);
  51. // 助学申请列表
  52. export const getApplyList = (data) => http.get('/deal/dmsStudyHelp/list', data);
  53. // 助学申请详情
  54. export const getApplyDetailUrl = (data) => http.get('/deal/dmsStudyHelp/' + data.id, data);
  55. // 修改暂存
  56. export const modifyApplyUrl = (params, config = {}) => http.put('/deal/dmsStudyHelp', params, config);
  57. // 删除申请详情
  58. export const deleteApplyUrl = (data) => http.delete('/deal/dmsStudyHelp/' + data.id, data);
  59. // 查询是否有未读消息
  60. export const hasUnReadMessageUrl = (data) => http.get('/deal/messageInfo/isRead', data);
  61. // 进度节点列表
  62. export const getProcessNodeUrl = (data) => http.get('/deal/processInfo/list', data);