123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import fly from "./main";
- import store from "@/store/index"
- //优惠券领取列表
- export function getCouponReceiveList($limit = 0) {
- let $params = {}
- $params['limit'] = $limit
- $params['status'] = 1
- $params['access_token'] = wx.getStorageSync('token')
- return fly.post('coupon/coupon-receive-list', $params)
- }
- //已优惠券列表
- export function getCouponList($limit = 0) {
- let $params = {}
- $params['limit'] = $limit
- $params['access_token'] = wx.getStorageSync('token')
- return fly.post('coupon/coupon-list', $params)
- }
- //已过期优惠券列表
- export function getOverdueCouponList($limit = 0) {
- let $params = {}
- $params['limit'] = $limit
- $params['access_token'] = wx.getStorageSync('token')
- return fly.post('coupon/coupon-expire-list', $params)
- }
- //待领取优惠券
- export function couponReceive($id) {
- let $params = {}
- $params['coupon_category_id'] = $id
- $params['access_token'] = wx.getStorageSync('token')
- return fly.post('coupon/coupon-receive', $params)
- }
- //首次登录领取优惠券
- export function couponReceiveFirst() {
- let $params = {
- "access_token": wx.getStorageSync('token'),
- "coupon_category_id": 1,
- }
- return fly.post('coupon/coupon-receive', $params)
- }
|