apply.js 1.2 KB

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