sopApi.js
884 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
const url = '/rop-scrm-sop/router'
export default {
/** 获取任务详情*/
getSopDetail (taskId) {
let data = {
method: 'scrm.api.sop.task.getById',
taskId
}
return window.$HTTP({
url,
data
})
},
/** 获取朋友圈发送所需素材信息 */
getMedia (taskId) {
let data = {
method: 'scrm.api.sop.task.wwMoment.getMedia',
taskId
}
return window.$HTTP({
url,
data
})
},
/** 发送朋友圈成功后调用 */
successFinished (taskId) {
let data = {
method: 'scrm.api.sop.task.wwMoment.successFinished',
taskId
}
return window.$HTTP({
url,
data
})
},
/**服务端发送朋友圈 */
shareToExternalMoments (data) {
data.method = 'scrm.api.sop.task.wwMoment.sendMonmentMessage'
return window.$HTTP({
url,
data
})
},
}