index.js 982 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. }
  39. /** *
  40. * 门店领取优惠券 m
  41. */
  42. export const receiveGift = data => {
  43. return https.post('/invite/get-new-gift', data)
  44. }