coupon.js 710 B

12345678910111213141516
  1. const http = uni.$u.http
  2. // get请求 查询可领取的优惠劵列表
  3. export const getUserDiscountsList = (params, config = {}) => http.get('/business/wechat/getUserDiscountsList', params, config)
  4. // get请求 我的优惠卷列表(0未使用, 1已使用, 2已过期 null查询全部)
  5. export const getMyCouponList = (params, config = {}) => http.get('/member/wechat/getCoupon', params, config)
  6. // get请求 查询可使用的优惠券
  7. export const getCanUseCouponList = (params, config = {}) => http.post('/member/wechat/getMemberCoupon', params, config)
  8. // post请求 领取优惠券
  9. export const claimCoupon = (params, config = {}) => http.post('/member/wechat/claimCoupon', params, config)