train.js 941 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import request from '@/utils/request'
  2. //救护培训系详情
  3. export function get_training(data) {
  4. return request({
  5. url: '/api/training/view',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. export function detail_training(data) {
  11. return request({
  12. url: '/api/detail_training',
  13. method: 'get',
  14. data
  15. });
  16. }
  17. //救护培训报名
  18. export function sign_training(data) {
  19. return request({
  20. url: '/api/training/apply',
  21. method: 'post',
  22. data
  23. });
  24. }
  25. //志愿者报名
  26. export function add_volunteers(data) {
  27. return request({
  28. url: '/api/add_registration',
  29. method: 'post',
  30. data
  31. });
  32. }
  33. // 造血干细胞列表
  34. export function cell(data) {
  35. return request({
  36. url: '/api/cell',
  37. method: 'get',
  38. data
  39. });
  40. }
  41. // 造血干细胞详情
  42. export function get_cell(data) {
  43. return request({
  44. url: '/api/get_cell',
  45. method: 'get',
  46. data
  47. });
  48. }
  49. export function sign_cell(data) {
  50. return request({
  51. url: '/api/sign_cell',
  52. method: 'post',
  53. data
  54. });
  55. }