data.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import axios from '@/libs/axios.js';
  2. // 根据字典code查询选项
  3. export const getLookUpDatas = (params) => {
  4. return axios.request({
  5. url: `lookup/findByLookup/${params.type}`,
  6. method: 'get'
  7. })
  8. }
  9. // 查询所有数据字典
  10. export const listLookUp = (params) => {
  11. let url = `lookup/findAll`
  12. return axios.request({
  13. url: url,
  14. method: 'post'
  15. }).then(res => res)
  16. }
  17. // 用户信息保存
  18. export const userInfoSave = (params) => {
  19. return axios.request({
  20. url: `reserve/user/info/saveMould`,
  21. method: 'post',
  22. data:params
  23. })
  24. }
  25. // 预约保存
  26. export const orderInfoSave = (params) => {
  27. return axios.request({
  28. url: `reserve/save`,
  29. method: 'post',
  30. data:params
  31. })
  32. }
  33. // 查询用户信息
  34. export const userDetail = (params) => {
  35. return axios.request({
  36. url: `reserve/user/info/findNewMould`,
  37. method: 'get',
  38. })
  39. }
  40. // 查询附近有无骑手可接单
  41. export const searchRider = (params) => {
  42. return axios.request({
  43. url: `userExt/queryNearRiderInfo`,
  44. method: 'post',
  45. data: params
  46. })
  47. }