account.js
2.06 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
import request from './request'
const path = 'dj.api.smartcarlife.orderDivision.'
const pathSub = 'dj.api.smartcarlife.subOrderDivision.'
const path2 = 'dj.api.withdraw.'
const pathServicer = 'dj.api.smartcarlife.sevicerOrderDivision.'
// const path3 = 'dj.api.smartcarlife.'
// 分账 - start
export function getListApi(data) {
data.method = `${path}page`
return request(data, 'post')
}
export function getCountApi(data) {
data.method = `${path}count`
return request(data, 'post')
}
export function exportApi(data) {
data.method = `${path}export`
return request(data, 'post')
}
// 分账 - end
// 服务商 - 分账 - start
export function getSeviceListApi(data) {
data.method = `${pathSub}page`
return request(data, 'post')
}
export function getSeviceCountApi(data) {
data.method = `${pathSub}count`
return request(data, 'post')
}
export function exportSeviceApi(data) {
data.method = `${pathSub}export`
return request(data, 'post')
}
// 服务商 - 分账 - end
// 提现 - start
export function getWithdrawList(data) {
data.method = `${path2}listWithPage`
return request(data, 'post')
}
export function getWithdrawCountApi(data) {
data.method = `${path2}count`
return request(data, 'post')
}
// 获取提现账号和提现余额
export function getBankBalanceApi(data) {
data.method = `${path2}bankBalance`
return request(data, 'post')
}
// 发起提现
export function createWithdraw(data) {
data.method = `${path2}create`
return request(data, 'post')
}
// 获取服务商关联的园区店信息
export function getPartnerYqListApi(data) {
data.method = 'dj.smartcarlife.api.partnerMerchant.listYq'
return request(data, 'post')
}
// 分账-服务商-列表
export function getSeviceList(data) {
data.method = `${pathServicer}page`
return request(data, 'post')
}
// 分账-服务商-统计
export function getSeviceCount(data) {
data.method = `${pathServicer}count`
return request(data, 'post')
}
// 分账-服务商-导出
export function getSeviceExport(data) {
data.method = `${pathServicer}export`
return request(data, 'post')
}