homePointsgoods.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import { requestApi } from '../util/network'
  2. // 获取积分兑换商品详情
  3. export const getPointshop =
  4. () =>
  5. requestApi(
  6. '/Pointshop/index',
  7. 'POST',
  8. {}
  9. )
  10. // 获取积分兑换店铺代金券列表
  11. export const getPointVoucherList =
  12. (params) =>
  13. requestApi(
  14. '/Pointvoucher/index',
  15. 'POST',
  16. {
  17. 'page': params.page,
  18. 'per_page': params.per_page,
  19. 'client_type': 'wap'
  20. }
  21. )
  22. // 积分兑换店铺代金券
  23. export const exchangePointVoucher =
  24. (params) =>
  25. requestApi(
  26. '/Pointvoucher/voucherexchange_save',
  27. 'POST',
  28. params
  29. )
  30. // 获取积分兑换代金券列表
  31. export const getPointMallVoucherList =
  32. (params) =>
  33. requestApi(
  34. '/Pointmallvoucher/index',
  35. 'POST',
  36. {
  37. 'page': params.page,
  38. 'per_page': params.per_page,
  39. 'gc_id':params.gc_id,
  40. 'client_type': 'wap'
  41. }
  42. )
  43. // 积分兑换平台代金券
  44. export const exchangePointMallVoucher =
  45. (params) =>
  46. requestApi(
  47. '/Pointmallvoucher/mallvoucherexchange_save',
  48. 'POST',
  49. params
  50. )
  51. // 获取积分兑换商品列表
  52. export const getPointsgoodsList =
  53. (params) =>
  54. requestApi(
  55. '/Pointprod/index',
  56. 'POST',
  57. {
  58. 'page': params.page,
  59. 'per_page': params.per_page,
  60. 'client_type': 'wap'
  61. }
  62. )
  63. // 获取积分兑换商品详情
  64. export const getPointsgoodsInfo =
  65. (id) =>
  66. requestApi(
  67. '/Pointprod/pinfo',
  68. 'POST',
  69. {
  70. 'id': id
  71. }
  72. )
  73. // 获取积分兑换商品订单列表
  74. export const getPointsorderList =
  75. (params, id) =>
  76. requestApi(
  77. '/Pointprod/get_order_list',
  78. 'POST',
  79. {
  80. 'page': params.page,
  81. 'per_page': params.per_page,
  82. 'pgoods_id': id
  83. }
  84. )