homeindex.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import { requestApi } from '../util/network'
  2. // 根据ap_id 获取 广告列表
  3. export const getAppadList =
  4. (apId) =>
  5. requestApi(
  6. '/Index/getAppadList',
  7. 'POST',
  8. {
  9. 'ap_id': apId
  10. }
  11. )
  12. // 获取首页需要用到的广告图
  13. export const homeIndexAdList =
  14. () =>
  15. requestApi(
  16. '/Index/getIndexAdList',
  17. 'POST',
  18. {
  19. }
  20. )
  21. // 首页商品列表
  22. export const homeIndexProductList =
  23. () =>
  24. requestApi(
  25. '/Index/getProductList',
  26. 'POST',
  27. {
  28. }
  29. )
  30. // 获取可编辑模块
  31. export const getEditablePageConfigList =
  32. (pageId, pagePath = '', itemId = 0, storeId = 0) =>
  33. requestApi(
  34. '/Index/getEditablePageConfigList',
  35. 'POST',
  36. {
  37. editable_page_id: pageId,
  38. editable_page_path: pagePath,
  39. editable_page_item_id: itemId,
  40. store_id: storeId
  41. }
  42. )
  43. // 获取猜你喜欢
  44. export const getGuessLike =
  45. (memberId = 0) =>
  46. requestApi(
  47. '/Index/getGuessLike',
  48. 'POST',
  49. {
  50. member_id: memberId
  51. }
  52. )