course.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import fetch from '@/common/utils/fetch.js'
  2. // 获取课程列表
  3. export function _optionCourse (params) {
  4. return fetch('/parents/Mycourses/option_course', params)
  5. }
  6. //智能报课获取周期
  7. export function _intelligentDates () {
  8. return fetch('/parents/Intelligent/getLigentDate')
  9. }
  10. //智能报课获取兴趣
  11. export function _intelligentInterests () {
  12. return fetch('/parents/Intelligent/getLigentCategory')
  13. }
  14. //智能报课获取课程
  15. export function _intelligentCourses (params) {
  16. return fetch('/parents/Intelligent/pickLigentCourse', params)
  17. }
  18. // 获取课程筛选选项 parents/Mycourses/advanced_filter
  19. export function _filter (params) {
  20. return fetch('/parents/Mycourses/advanced_filter', params)
  21. }
  22. // 课程详情 parents/Mycourses/course_details
  23. export function _detail (params) {
  24. return fetch('/parents/Mycourses/course_details', params)
  25. }
  26. // 课程套餐详情 parents/Mycourses/course_gift
  27. export function _gift (params) {
  28. return fetch('/parents/Mycourses/course_gift', params)
  29. }
  30. // 课程评价 parents/Mycourses/now_details_comment
  31. export function _comments (params) {
  32. return fetch('/parents/Mycourses/now_details_comment', params, 'POST', false)
  33. }
  34. // 添加购物车 parents/Commit/join_shop
  35. export function _joinShop (params, showFail = true) {
  36. return fetch('/parents/Commit/join_shop', params, 'POST', showFail)
  37. }
  38. // 批量添加购物车
  39. export function _joinShops (params) {
  40. return fetch('/parents/Commit/joinShopMulti', params)
  41. }
  42. // 购物车列表 /parents/Shopping/index
  43. export function _shopList (params) {
  44. return fetch('/parents/Shopping/index', params)
  45. }
  46. // 删除购物车 /parents/Shopping/del_shopping
  47. export function _delShop (params) {
  48. return fetch('/parents/Shopping/del_shopping', params)
  49. }
  50. // 生成订单 parents/Commit/order
  51. export function _createOrder (params) {
  52. return fetch('/parents/Commit/order', params)
  53. }
  54. // 订单列表 parents/Ordercentre/index
  55. export function _orderCenter (params) {
  56. return fetch('/parents/Ordercentre/index', params)
  57. }
  58. // 退课数据 get_dropcourse_byorder
  59. export function _dropList (params) {
  60. return fetch('/parents/dropcourse/get_dropcourse_byorder', params)
  61. }
  62. // 订单支付
  63. export function _payOrder (params) {
  64. return fetch('/parents/pay/payment', params)
  65. }
  66. // 取消订单 /parents/Ordercentre/del_order
  67. export function _cancelOrder (params) {
  68. return fetch('/parents/Ordercentre/del_order', params)
  69. }
  70. // 进行退课 /parents/dropcourse/to_drop_course
  71. export function _dropCourse (params) {
  72. return fetch('/parents/dropcourse/to_drop_course', params)
  73. }
  74. // 历史课程 /parents/Mycourses/course_history
  75. export function _courseHistory (params) {
  76. return fetch('/parents/Mycourses/course_history', params)
  77. }
  78. // 我的课程 /parents/Mycourses/course_history
  79. export function _nowCourse (params) {
  80. return fetch('/parents/Mycourses/now_course', params)
  81. }
  82. // 课程表 /parents/Mycourses/date_course
  83. export function _dateCourse (params) {
  84. return fetch('/parents/Mycourses/date_course', params)
  85. }
  86. // 考勤记录 /parents/attendance/get_attendance
  87. export function _attendance (params) {
  88. return fetch('/parents/attendance/get_attendance', params)
  89. }
  90. // 课堂详情 /parents/dailyclass/get_dailyclass_details
  91. export function _dailiClass (params) {
  92. return fetch('/parents/dailyclass/get_dailyclass_details', params)
  93. }
  94. // 安全交接情况 /parents/sign/get_sign
  95. export function _getSignIn (params) {
  96. return fetch('/parents/sign/get_sign', params)
  97. }
  98. // 进行安全交接 /parents/sign/to_sign
  99. export function _toSignIn (params) {
  100. return fetch('/parents/sign/to_sign', params)
  101. }
  102. // 进行评价 /parents/Todayclass/comment
  103. export function _tocomment (params) {
  104. return fetch('/parents/Todayclass/comment', params)
  105. }
  106. // 评价详情
  107. export function _commentDetail (params) {
  108. return fetch('/parents/dailyclass/get_satisfaction', params)
  109. }
  110. // 获取请假类型
  111. export function _leaveType (params) {
  112. return fetch('/teacher/leave/get_leave_type', params)
  113. }
  114. // 申请请假 parents/schedule/student_leave
  115. export function _askLeave (params) {
  116. return fetch('/parents/schedule/student_leave', params)
  117. }