sopApi.js
690 Bytes
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
})
}
}