couponApi.js
467 Bytes
const url = '/rop-scrm-coupon/router'
const returnAll = true
export default {
/** 获取分享优惠卷信息 */
getCouponInfo(data) {
data.method = 'scrm.api.coupon.share.info'
return window.$HTTP({
url,
data,
returnAll
})
},
/**领取优惠券 */
receiveCoupon(data) {
data.method = 'scrm.api.coupon.share.receive'
data.receiveSource = 4
return window.$HTTP({
url,
data,
returnAll
})
},
}