channel.js
2.95 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
import { http } from '@/main'
const url = 'rop-scrm-shopmall/router'
// 分页查询频道列表
const getChannelListApi = params => {
params.method = `scrm.api.shopmall.discover.channel.page`
return http({
url,
method: 'post',
data: params,
sign: true
})
}
// 频道详情
const getChannelDetail = params => {
params.method = `scrm.api.shopmall.discover.channel.detail`
return http({
url,
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 新增或编辑频道
const updateChannel = params => {
params.method = `scrm.api.shopmall.discover.channel.add.or.update`
return http({
url,
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 门店频道详情
const getMerchantChannelDetail = params => {
params.method = `scrm.api.shopmall.discover.channel.merchant.detail`
return http({
url,
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 新增或编辑门店频道
const updateMerchantChannel = params => {
params.method = `scrm.api.shopmall.discover.channel.merchant.add.or.update`
return http({
url,
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 开通订阅
const openSubscribe = params => {
params.method = `entmicro.api.system.subscribe.open`
return http({
url,
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
//查询商户配置
const selStoreConfig = params => {
params.method = `scrm.api.equity.service.merchant.pagination.list.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
returnAll: true
})
}
// 关联活动
const correlateActivity = params => {
params.method = `entmicro.api.system.subscribe.activity.correlate`
return http({
url,
method: 'POST',
data: params,
returnAll: true
})
}
const getActivityList = params => {
params.method = `scrm.api.shopmall.select.bulge.activity.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
returnAll: true
})
}
// 更改商户开通状态
const updateState = params => {
params.method = `entmicro.api.system.subscribe.state.update`
return http({
url,
method: 'POST',
data: params,
returnAll: true
})
}
// 生成救援贴
const generateRescueCode = params => {
params.method = `entmicro.api.system.subscribe.rescue.generate`
return http({
url,
method: 'POST',
data: params,
returnAll: true
})
}
// 订阅开通商户分页查询
const subscribeMerchant = params => {
params.method = `entmicro.api.system.subscribe.merchant.page`
return http({
url,
method: 'POST',
data: params,
returnAll: true
})
}
export default { updateMerchantChannel,getMerchantChannelDetail,subscribeMerchant, generateRescueCode, updateState, getActivityList, getChannelListApi, openSubscribe, selStoreConfig, getChannelDetail, updateChannel, correlateActivity }