short-video.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. import request from "@/utils/request.js";
  11. /**
  12. * 短视频列表
  13. *
  14. */
  15. export function videoList(data) {
  16. return request.get(
  17. "marketing/short_video",data,{ noAuth: true }
  18. );
  19. }
  20. /**
  21. * diy短视频列表
  22. *
  23. */
  24. export function diyVideoList(data) {
  25. return request.get(
  26. "diy/video_list",data,{ noAuth: true }
  27. );
  28. }
  29. /**
  30. * 短视频点赞、收藏、分享
  31. *
  32. */
  33. export function markeVideo(type,id) {
  34. return request.get(
  35. `marketing/short_video/${type}/${id}`
  36. );
  37. }
  38. /**
  39. * 短视频评论列表
  40. *
  41. */
  42. export function commentList(id,data) {
  43. return request.get(
  44. `marketing/short_video/comment/${id}`,data
  45. );
  46. }
  47. /**
  48. * 短视频评价、评价回复
  49. *
  50. */
  51. export function markeComment(data) {
  52. return request.post(
  53. `marketing/short_video/comment/${data.id}/${data.pid}`,{content:data.content}
  54. );
  55. }
  56. /**
  57. * 短视频评价回复列表
  58. *
  59. */
  60. export function replyCommentList(pid,data) {
  61. return request.get(
  62. `marketing/short_video/comment_reply/${pid}`,data
  63. );
  64. }
  65. /**
  66. * 视频评论点赞
  67. *
  68. */
  69. export function replyCommentLike(type,id) {
  70. return request.get(
  71. `marketing/short_video/comment/${type}/${id}`
  72. );
  73. }
  74. /**
  75. * 短视频关联商品列表
  76. *
  77. */
  78. export function videoProduct(id,data) {
  79. return request.get(
  80. `marketing/short_video/product/${id}`,data
  81. );
  82. }