index.js
782 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
/**
* 拓客户,看线索接口
*/
import api from '~/utils/request/request'
// const common = 'scrm.api.carlife.common.'
const serverApi = {
// 拓客户
productByscene:'scrm.api.busassistant.activity.productByscene'
}
// 拓客户
const productBysceneApi = (data) =>{
return api.post(
{
method: serverApi.productByscene,
...data
},
true
)
}
// 看线索
module.exports = {
/** 线索埋点数据上报
* operationType 操作类型(0:分享 1:浏览 2:申请活动)
*/
reportData(data = {}, operationType = 0) {
return api.post({
method: 'scrm.api.busassistant.clue.report',
...data,
operationType,
operationDate: new Date().format('yyyy-MM-dd hh:mm:ss'),
})
},
productBysceneApi
}