course.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import request from '@/utils/request'
  2. //专题列表
  3. export function course_list(data) {
  4. return request({
  5. url: '/api/special.special/get_content_recommend',
  6. method: 'post',
  7. data
  8. });
  9. }
  10. //专题详情
  11. export function details(data) {
  12. return request({
  13. url: '/api/special.special/details',
  14. method: 'get',
  15. data
  16. });
  17. }
  18. //专题收藏
  19. export function collect(data) {
  20. return request({
  21. url: '/api/special.special/collect',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. //专题收藏
  27. export function course(data) {
  28. return request({
  29. url: '/api/special.special/get_course_list',
  30. method: 'get',
  31. data
  32. });
  33. }
  34. //专题收藏
  35. export function task_info(data) {
  36. return request({
  37. url: '/api/special.special/task_info',
  38. method: 'get',
  39. data
  40. });
  41. }
  42. //创建专题支付订单
  43. export function create_order(data) {
  44. return request({
  45. url: '/api/special.special/create_order',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. //视频是否可以播放
  51. export function GetTask(data) {
  52. return request({
  53. url: '/api/special.special/get_task_link',
  54. method: 'post',
  55. data
  56. });
  57. }
  58. //视频播放数量加一
  59. export function PlayNum(data) {
  60. return request({
  61. url: '/api/special.special/play_num',
  62. method: 'post',
  63. data
  64. });
  65. }
  66. //视频分类
  67. export function unified(data) {
  68. return request({
  69. url: '/api/special.special/unified_list',
  70. method: 'get',
  71. data
  72. });
  73. }
  74. //视频分类
  75. export function GetUnifiend(data) {
  76. return request({
  77. url: '/api/special.special/get_unifiend_list',
  78. method: 'get',
  79. data
  80. });
  81. }