Home.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import { getHttp, postHttp } from "../request.js";
  2. /* 首页 */
  3. export const Home = {
  4. getNewList: (params) => {
  5. return getHttp("/home/new", params);
  6. },
  7. /*
  8. 列表
  9. PageSize * CurrentIndex * ChartPermissionId *品类id,最新传0
  10. */
  11. getList: (params) => {
  12. return getHttp("/home/artAndChart/list", params);
  13. },
  14. /* 获取品种 */
  15. Tab: (params) => {
  16. return getHttp("/permission/all", params, 0);
  17. },
  18. /* 首页-顶部导航 */
  19. headerTab: (params) => {
  20. return getHttp("/home/header_tab", params, 0);
  21. },
  22. /* 微路演列表 */
  23. microRoadshowList: (params) => {
  24. return getHttp("/micro_roadshow/list", params);
  25. },
  26. /* 新增视频播放记录 */
  27. microAideoHistoryAdd: (params) => {
  28. return postHttp("/micro_roadshow/videoHistory/add", params, 0);
  29. },
  30. /* 微路演留言 */
  31. microRoadshowAdd: (params) => {
  32. return postHttp("/micro_roadshow/comment/add", params, 0);
  33. },
  34. //微路演收藏
  35. microRoadshowCollect: (params) => {
  36. return postHttp("/micro_roadshow/collect", params);
  37. },
  38. /* banner 列表 */
  39. bannerList: (params) => {
  40. return getHttp("/banner/list", params, 0);
  41. },
  42. /* banner 记录点击信息 */
  43. bannerHistory: (params) => {
  44. return postHttp("/banner/add/history", params, 0);
  45. },
  46. /* 获取标签列表 */
  47. homeTagListCustom: (params) => {
  48. return getHttp("/tag/list/custom", params, 0);
  49. },
  50. /* 标签记录点击信息 */
  51. tagAddHistory: (params) => {
  52. return postHttp("/tag/add/history", params, 0);
  53. },
  54. };