home.js
3.5 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import api from '../common/create-api';
module.exports = {
getWechatShareCode(params) {
// return api.get('/erp/wechatCs/getWechatShareCode', params);
return new Promise(function(resolve, reject) {
return resolve({
"alg": "SALT_MD5",
"code": 200,
"data": "db1a9ef9f609c0cd70",
"md5": "3f4552cccfaefc99e16847cc63b5402e",
"message": "操作成功"
});
})
},
getWechatConsultant(params) {
// return api.get('/erp/wechatCs/getWechatConsultant', params);
return new Promise(function(resolve, reject) {
return resolve({
"alg": "SALT_MD5",
"code": 200,
"data": {
"groupName": "其他顾问分组",
"machineCode": "99001182249951",
"staffName": "刘忙",
"wechatCode": "yoho2w1qb",
"wechatMobile": "13770769602",
"wechatNickName": "红柚",
"wechatUid": 500032152,
"yohoMobile": "13770769602"
},
"md5": "7541dd607cef8dc3345d2ce0af7ce1c4",
"message": "操作成功"
})
});
},
getUserInfo(params) {
// return api.get('/erp/wechatCs/getUserInfo', params);
return new Promise(function(resolve, reject) {
return resolve({
"alg": "SALT_MD5",
"code": 200,
"data": {
"birthday": "1995-08-20",
"createTimeStr": "2018-04-27 00:28:50",
"mobile": "13365289763",
"nickName": "admire102",
"user_uid": 500031572,
"vipLevel": "0",
"yearCost": "0"
},
"md5": "216a47d172dfc195d992a3151df7c3a0",
"message": "操作成功"
})
});
},
bindWechatCSAndUser(params) {
// return api.get('/erp/wechatCs/bindWechatCSAndUser', params);
return new Promise(function(resolve, reject) {
return resolve({
"alg": "SALT_MD5",
"code": 200,
"data": [],
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"message": "操作成功"
})
});
},
updateUserReminder(params) {
// return api.get('/erp/wechatCs/updateUserReminder', params);
return new Promise(function(resolve, reject) {
return resolve({
"alg": "SALT_MD5",
"code": 200,
"data": [],
"md5": "6d729d4b35f10fc73531210bd7ecff91",
"message": "操作成功"
})
});
},
getUserUid(params) {
// return api.get('/erp/wechatCs/getUserUid', params);
return new Promise(function(resolve, reject) {
return resolve({
"alg": "SALT_MD5",
"code": 200,
"data": 500031572,
"md5": "86ac2ee7339487d6211c7629a4ef5432",
"message": "操作成功"
})
});
},
getOrderList(params) {
return api.get('/erp-gateway/erp/order/getOrderList', params);
},
getChangeList(params) {
return api.get('/erp-gateway/erp/order/getChangeList', params);
},
getRefundList(params) {
return api.get('/erp-gateway/erp/order/getRefundList', params);
}
}