restapi.js
2.28 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
import {
api
} from '../utils/util.js'
module.exports = {
/**
* 登出
*/
logout(callBack) {
api.post('logout', null, callBack)
},
/**人数预览 */
getUserOfConsultant(employeeId, callBack) {
api.get('employee/getUserOfConsultant', {
type: 2,
employeeId
}, callBack)
},
/**获取员工、门店信息 */
getAccountInfo(uuid, callBack) {
api.get('employee/getAccountInfo', {
uuid
}, callBack)
},
getEmployeeInfo(employeeId, callBack) {
api.get('employee/getEmployeeInfo', {
employeeId
}, callBack)
},
/**门店信息 */
getMerchantInfo(merchantId, callBack) {
api.get('merchant/getMerchantInfo', {
merchantId: merchantId
}, callBack)
},
/**保存员工名片 */
save(data, callBack) {
api.post('employee/update', data, callBack)
},
/**保存门店 */
saveMerchant(data, callBack) {
api.post('merchant/update', data, callBack)
},
/**获取车品牌 */
getCarBrandLetter(callBack) {
api.get('car/getCarBrandLetter', {}, callBack)
},
/**我的粉丝 */
getMyFansList(data, callBack) {
api.post('videoPlus/focusUser/getMyFansList', data, callBack)
},
/**我的同事 */
getMyColleague(callBack) {
api.get('employee/getMyColleague', {}, callBack)
},
/**获取关注信息 */
getFocusUserInfo(id, callBack) {
api.get('videoPlus/focusUser/getFocusUserInfo', {
focusedUserId: id
}, callBack)
},
/**公众号二维码 */
getQrcode(data, callBack) {
api.post('createBizQrcode', data, callBack)
},
/**添加同事 */
enabledAccount(data, callBack) {
api.get('user/enabledAccount', {
accountName: data
}, callBack)
},
/** 获取提现账号及可提现余额 */
getWithdrawableBalance(callBack) {
api.get('smartcarlife/withdraw/getWithdrawableBalance', {}, callBack)
},
/**提现列表 */
getWithdrawList(data, callBack) {
api.post('smartcarlife/withdraw/listWithPage', data, callBack)
},
/**提现申请 */
toWithdraw(data, callBack) {
api.get('smartcarlife/withdraw/create', data, callBack)
},
/**验证码 sendSms */
sendSms(callBack) {
api.post('smartcarlife/withdraw/sendSms', {}, callBack)
},
}