couponApi.js
1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
const url = '/rop-scrm-coupon/router'
const pageSize = 10
export default {
/**商城优惠券列表 */
getMerchantCouponList(data) {
// data.method = 'scrm.api.coupon.list.merchant'
data.method = 'scrm.wechat.activity.coupon.list'
data.pageSize = pageSize
data.validType = 'valid'
data.discountTypes = [2,3,4]
return window.$HTTP({
url,
data
})
},
/** 获取优惠卷分享链接 */
getCouponShared(data) {
data.method = 'scrm.api.coupon.share'
return window.$HTTP({
url,
data
})
},
/** 已经核销列表 */
getVerificationList(data) {
data.method = 'scrm.api.coupon.verification.code.verification.list'
data.pageSize = pageSize
return window.$HTTP({
url,
data
})
},
/** 查询已领取 未核销 */
getUserCouponList(data) {
data.method = 'scrm.api.coupon.user.list.merchant'
data.pageSize = pageSize
return window.$HTTP({
url,
data
})
},
/** 根据核销码查询卷信息 */
scan(data) {
data.method = 'scrm.api.coupon.verification.code.scan'
return window.$HTTP({
url,
data
})
},
/** 核销核销码 */
verificationCode(data) {
data.method = 'scrm.api.coupon.verification.code.verification'
return window.$HTTP({
url,
data
})
},
}