index.js 857 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. /** *
  3. * 登陆客户的优惠情况 m
  4. */
  5. // export const discount = data => {
  6. // return https.get('/user/discount', data)
  7. // }
  8. /** *
  9. * 登陆客户的优惠券列表 m
  10. */
  11. // export const list = data => {
  12. // return https.get('/user/discount', data)
  13. // }
  14. /** *
  15. * 优惠券列表 m
  16. */
  17. export const getList = data => {
  18. return https.get('/coupon/list', data)
  19. }
  20. // ===================== B 端 ========================
  21. /** *
  22. * 优惠券列表 b
  23. */
  24. export const getListB = data => {
  25. return https.get('/coupon/list', data)
  26. }
  27. /** *
  28. * 新人优惠券设置的详情 b
  29. */
  30. export const couponAssetDet = data => {
  31. return https.get('/coupon-asset/detail', data)
  32. }
  33. /** *
  34. * 奖励设置详情 b
  35. */
  36. export const couponAssetUpdate = data => {
  37. return https.post('/coupon-asset/update', data)
  38. }