goodsConponApi.js
883 Bytes
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
import { http, other_http } from '@/main'
const url = 'rop-scrm-coupon/router'
/**商品分页查询*/
const getCouponsList = params => {
params.method = 'scrm.api.coupon.equity.list.merchant'
return other_http({
url,
data: params
})
}
const createCoupons = params => {
params.method = 'scrm.api.coupon.equity.batch.create'
return other_http({
url,
data: params
})
}
const getExportApi = params => {
params.method = `scrm.api.coupon.equity.list.merchant.export`
return other_http({
url,
data: params,
sign: true
})
}
//领取记录列表
const getListReceiveRecordApi = params => {
params.method = `scrm.api.coupon.listReceiveRecordByCouponId`
return other_http({
url,
method: 'GET',
data: params,
sign: true
})
}
export default {
getCouponsList,
createCoupons,
getExportApi,
getListReceiveRecordApi
}