homeMarketmanage.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { requestApi } from '../util/network'
  2. // 获取营销活动详情
  3. export const getMarketmanageInfo =
  4. (marketmanageId, token) =>
  5. requestApi(
  6. '/Marketmanage/get_info',
  7. 'GET',
  8. {
  9. 'marketmanage_id': marketmanageId,
  10. 'key': token
  11. }
  12. )
  13. // 获取营销活动列表
  14. export const getMarketmanageList =
  15. (params,type) =>
  16. requestApi(
  17. '/Marketmanage/get_list',
  18. 'GET',
  19. {
  20. type:type,
  21. page: params.page,
  22. per_page: params.per_page
  23. }
  24. )
  25. // 新增营销活动参与记录
  26. export const addMarketmanagelog =
  27. (marketmanageId) =>
  28. requestApi(
  29. '/member_marketmanage/add_log',
  30. 'POST',
  31. {
  32. 'marketmanage_id': marketmanageId
  33. },
  34. 'member'
  35. )
  36. // 获取营销活动参与记录
  37. export const getMarketmanagelog =
  38. (params) =>
  39. requestApi(
  40. '/member_marketmanage/get_log',
  41. 'POST',
  42. {
  43. page: params.page,
  44. per_page: params.per_page
  45. },
  46. 'member'
  47. )