details.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import upload from '@/utils/upload'
  2. import request from '@/utils/request'
  3. // 获取选择项健值每一项
  4. export function typeOptionSelect() {
  5. return request({
  6. url: '/system/dict/data/list?pageNum=1&pageSize=10&dictType=lrr_service_category',
  7. method: 'get',
  8. })
  9. }
  10. // 获取志愿者详情页
  11. export function getDetailsvolunteerId(volunteerId) {
  12. return request({
  13. url: `/core/volunteer/info/getDetails/${volunteerId}`,
  14. method: 'get',
  15. })
  16. }
  17. // 获取志愿者列表信息
  18. export function volunteerinfolist() {
  19. return request({
  20. url: '/core/volunteer/info/list',
  21. method: 'get',
  22. })
  23. }
  24. // 志愿者排班日期
  25. export function volunteerwork(params) {
  26. return request({
  27. url: '/core/volunteer/work-date/getVolunteerWorkDate',
  28. method: 'get',
  29. params:params
  30. });
  31. }
  32. // 获取志愿者所有排班时间
  33. export function volunteergetTimesByDate(params) {
  34. return request({
  35. url: '/core/volunteer/work-date/getTimesByDate',
  36. method: 'get',
  37. params:params,
  38. });
  39. }
  40. // 确认支付
  41. export function ordersCreateOrder(data) {
  42. return request({
  43. url: '/core/users/orders/createOrder',
  44. method: 'post',
  45. data:data,
  46. });
  47. }