api.js 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 uploadAvatarUrl = (params, config = {}) => http.upload('/dev-api/system/user/profile/avatar', params,
  18. config);
  19. // 获取未读消息数
  20. export const getMsgCountUrl = (data) => http.get('/dev-api/system/notice/myNoticeList', data);
  21. // 修改消息
  22. export const modifyMsgUrl = (params, config = {}) => http.post('/dev-api/system/notice/setIsRead', params, config);
  23. // 注册
  24. export const registerUrl = (params, config = {}) => http.post('/xc-order/api//order/user/register', params, config);
  25. // 查询消息列表
  26. export const getMessageListUrl = (params, config = {}) => http.post('/xc-order/api/order/message/messageList', params,
  27. config);
  28. // 修改个人信息
  29. export const modifyUserInfoUrl = (params, config = {}) => http.post('/xc-order/api/order/user/updateUser', params,
  30. config);
  31. // 获取预约日期信息
  32. export const getDateInfoUrl = (data) => http.get('/xc-order/api/order/orderQuantum/getQuantumDateList', data);
  33. // 根据日期获取预约数据
  34. export const getInfoByDateUrl = (data) => http.get('/xc-order/api/order/orderQuantum/getQuantumList', data);
  35. // 提交预约
  36. export const submitReversationUrl = (params, config = {}) => http.post('/xc-order/api/order/business/submitOrder',
  37. params,
  38. config);
  39. // 获取预约列表
  40. export const getReservationListUrl = (data) => http.get('/xc-order/api/order/business/getOrderBusinessList', data);
  41. // 取消预约
  42. export const cancelReservationUrl = (params, config = {}) => http.put('/xc-order/api/order/business/cancelOrder',
  43. params, config);
  44. // 修改密码
  45. export const changePwdUrl = (params, config = {}) => http.put('/system/user/resetPwdByUser', params, config);
  46. // 获取村社列表
  47. export const getVillageUrl = (data) => http.get('/system/user/deptTree', data);
  48. // 实名认证
  49. export const authUrl = (params, config = {}) => http.put('/system/user/realName', params, config);
  50. // 新增助学申请
  51. export const addApplyUrl = (params, config = {}) => http.post('/deal/dmsStudyHelp', params, config);
  52. // 助学申请列表
  53. export const getApplyList = (data) => http.get('/deal/dmsStudyHelp/list', data);
  54. // 助学申请详情
  55. export const getApplyDetailUrl = (data) => http.get('/deal/dmsStudyHelp/' + data.id, data);
  56. // 修改暂存
  57. export const modifyApplyUrl = (params, config = {}) => http.put('/deal/dmsStudyHelp', params, config);
  58. // 删除申请详情
  59. export const deleteApplyUrl = (data) => http.delete('/deal/dmsStudyHelp/' + data.id, data);
  60. // 查询是否有未读消息
  61. export const hasUnReadMessageUrl = (data) => http.get('/deal/messageInfo/isRead', data);
  62. // 进度节点列表
  63. export const getProcessNodeUrl = (data) => http.get('/deal/processInfo/list', data);