mineApi.js
3.99 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
import api from "~/utils/request/request";
// const { appId } = wx.getAccountInfoSync().miniProgram
// import {getAppId} from '~/utils/utils_wx'
class MineApi {
// 获取积分详情
getScoreDetailApi(data) {
return api.post({
method: "stoassistant.api.score.detail",
...data,
});
}
// 提现记录
getWithdrawalListApi(data) {
return api.post({
method: "stoassistant.api.withdrawal.list",
...data,
});
}
// 提现
WithdrawalApi(data) {
return api.post({
method: "stoassistant.api.withdrawal.insert",
...data,
},
true
);
}
// 获取员工详情
getStaffDetailApi(data, params) {
return api.post({
method: "scrm.api.sso.wechat.account.staff.detail",
...data,
},
false,
params && params.isShowLoading
);
}
// 更新员工信息
updateStaffDetailApi(data) {
return api.post({
method: "scrm.api.sso.wechat.account.staff.update",
...data,
});
}
// 退出登录
logoutApi(data) {
return api.post({
method: "scrm.api.sso.wechat.applets.logout",
...data,
},
true
);
}
// 微信绑定
wechatBindApi(data) {
return api.post({
method: "scrm.api.sso.wechat.account.binding.openId",
...data,
},
true
);
}
// 扫码识别优惠券详情
couponsDetailByScan(data) {
return api.post({
method: 'scrm.api.assistant.coupon.verification.scan',
...data
})
}
// 确认核销
comfirmHx(data) {
return api.post({
method: 'scrm.api.assistant.coupon.verification',
...data
})
}
// 判断该门店是否支持线下单补录
makeUpExchange(data) {
return api.post({
method: "scrm.api.stoassistant.crowd.activity.makeup.exchange",
...data,
},
true
);
}
//获取该门店下参与众筹活动的员工
getActivityStaffList(data) {
return api.post({
method: "scrm.api.stoassistant.crowd.activity.staff.list",
...data,
},
true
);
}
//众筹活动指派工单
orderSupplement(data) {
return api.post({
method: "scrm.api.stoassistant.crowd.activity.order.Supplement",
...data,
},
true
);
}
//众筹模式活动列表
getActivityList(data) {
return api.post({
method: "scrm.api.assistant.crowd.activity.simple.page",
...data,
});
}
//创建众筹活动员工
createStaff(data) {
return api.post({
method: "scrm.api.stoassistant.crowd.activity.create.staff",
...data,
},
true
);
}
// 获取收益明细列表
getScoreListApi(data) {
return api.post({
method: "stoassistant.api.score.list",
...data,
});
}
/**根据员工id查询员工银行卡列表 */
getStaffBankList(data) {
return api.post({
method: 'scrm.api.stoassistant.withdrawal.staff.bank.list',
...data,
});
}
/** 根据id查询银行卡详情 */
getStaffBankDetail(data) {
return api.post({
method: 'scrm.api.stoassistant.withdrawal.staff.bank.detail',
...data,
});
}
/** 插入或更新员工银行卡信息 */
insetorupdateStaffBank(data) {
return api.post({
method: 'scrm.api.stoassistant.withdrawal.staff.bank.insetorupdate',
...data,
}, true);
}
/** 获取手续费率 */
getRate(data) {
return api.post({
method: 'scrm.api.stoassistant.withdrawal.staff.rate',
...data,
});
}
/** 积分提现门店白名单配置校验 */
checkMerchantOfpoints(data) {
return api.post({
method: 'stoassistant.api.withdrawal.of.points.merchant.check',
...data,
});
}
/** 获取部门 */
findDictData(data) {
return api.post({
method: 'merchants.api.menu.findDictData',
projectName: 'rop-merchants',
...data,
},false,false,'merchant');
};
/** 个人中心-积分收益详情 */
getDetail(data) {
return api.post({
method: 'stoassistant.api.score.list.detail',
...data,
});
}
}
export default MineApi;