api.js 3.4 KB

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