| 12345678910111213141516171819 |
- import request from '@/api'
- const openid = uni.getStorageSync('openid')
- const couponService = {
- // 获取优惠券列表
- getCouponList: () => request.postForm('/coupon/list'),
- getUserCouponList: status => request.postForm('/coupon/list', {
- status, //全部 ; 已使用; 已过期; 未使用
- openid
- }),
- // 领取优惠券
- claimCoupon: id => request.postForm('/coupon/get', {
- id,
- openid
- })
- }
- export default couponService
|