index.js 844 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. /** *
  3. * 优惠券列表 m
  4. */
  5. export const getList = data => {
  6. return https.get('/hb/list', data)
  7. }
  8. /**
  9. * 某门店下的所有可用红包
  10. */
  11. export const getAvailableHb = data => {
  12. return https.get('/hb/available-hb', data)
  13. }
  14. // ===================== B 端 ========================
  15. /** *
  16. * 优惠券列表 b
  17. */
  18. export const getListB = data => {
  19. return https.get('/hb/list', data)
  20. }
  21. /** *
  22. * 新人优惠券设置的详情 b
  23. */
  24. export const couponAssetDet = data => {
  25. return https.get('/coupon-asset/detail', data)
  26. }
  27. /** *
  28. * 奖励设置详情 b
  29. */
  30. export const couponAssetUpdate = data => {
  31. return https.post('/coupon-asset/update', data)
  32. }
  33. /** *
  34. * 门店领取优惠券 m
  35. */
  36. export const receiveGift = data => {
  37. return https.post('/invite/get-new-gift', data)
  38. }