api.js 3.0 KB

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