apply.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import {
  2. myRequest
  3. } from '../request.js'
  4. export default {
  5. //新增用户预约考试
  6. addApply(data) {
  7. return myRequest({
  8. url: '/apply',
  9. method: 'post',
  10. data: data
  11. })
  12. },
  13. //修改用户预约考试
  14. editApply(data) {
  15. return myRequest({
  16. url: '/apply/edit',
  17. method: 'post',
  18. data: data
  19. })
  20. },
  21. //查询报考数据列表
  22. getApplylist(data) {
  23. return myRequest({
  24. url: '/apply/list',
  25. method: 'get',
  26. data: data
  27. })
  28. },
  29. //点击预约报考按钮
  30. getApplysubscribe(data) {
  31. return myRequest({
  32. url: '/apply/subscribe',
  33. method: 'get',
  34. data: data
  35. })
  36. },
  37. //获得考试的考试地点
  38. getApplysubscribeApplySite(data) {
  39. return myRequest({
  40. url: '/apply/subscribeApplySite',
  41. method: 'get',
  42. data: data
  43. })
  44. },
  45. //获得考试的考培地点
  46. getApplysubscribeApplySiteTrain(data) {
  47. return myRequest({
  48. url: '/apply/subscribeApplySiteTrain',
  49. method: 'get',
  50. data: data
  51. })
  52. },
  53. //预约报考下一步按钮 1 进入有考陪有考试地点得预约考试 2进入无考陪有考试地点预约考试 3无考试次数购买商品
  54. getApplysubscribeNext(data) {
  55. return myRequest({
  56. url: '/apply/subscribeNext',
  57. method: 'get',
  58. data: data
  59. })
  60. }
  61. }