index.js 993 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. /** *
  3. * 优惠券列表 m
  4. */
  5. export const getList = data => {
  6. return https.get('/coupon/list', data)
  7. }
  8. /** *
  9. * 优惠券列表 w
  10. */
  11. export const shopCouponList = data => {
  12. return https.get('/shop-coupon/list', data)
  13. }
  14. /** *
  15. * 优惠券列表 w
  16. */
  17. export const shopHouponHas = data => {
  18. return https.get('/shop-coupon/has', data)
  19. }
  20. /** *
  21. * 优惠券列表 b
  22. */
  23. export const getListB = data => {
  24. return https.get('/coupon/list', data)
  25. }
  26. /** *
  27. * 新人优惠券设置的详情 b
  28. */
  29. export const couponAssetDet = data => {
  30. return https.get('/coupon-asset/detail', data)
  31. }
  32. /** *
  33. * 奖励设置详情 b
  34. */
  35. export const couponAssetUpdate = data => {
  36. return https.post('/coupon-asset/update', data)
  37. }
  38. /** *
  39. * 门店领取优惠券 m
  40. */
  41. export const receiveGift = data => {
  42. return https.post('/invite/get-new-gift', data)
  43. }
  44. export const ghsSendHb = data => {
  45. return https.get('/shop-coupon/ghs-send-hb', data)
  46. }