api.js
1.85 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
import {
api
} from '../../../utils/util.js'
module.exports = {
scanGetDetailByOrderCode(data, success) {
api.get('smartcarlife/goodsOrder/scanGetDetailByOrderCode', data, success)
},
invokeWxUnifiedorder(data, success) {
api.post('smartcarlife/goodsOrder/invokeWxUnifiedorder', data, success)
},
getDetailByOrderCode(data, success) {
api.get('smartcarlife/goodsOrder/getDetailByOrderCode', data, success)
},
addComment(data, success) {
api.post('smartcarlife/goodsOrderComment/addComment', data, success)
},
/**员工信息 /
*/
getYqInfo(data, success) {
api.get('smartcarlife/serviceMerchantRef/getYqInfo', data, success)
},
/** */
getCouponInfo(data, success) {
api.get('smartCarLife/LifeMerchantCoupon/getById', data, success)
},
/** 获取精品礼券详情 */
getCustomerCoupon(data, success) {
api.get('smartCarLife/lifeCustomerCoupon/getCustomerCouponVo', data, success)
},
/** / */
getCoupon(data, success) {
api.post('smartCarLife/lifeCustomerCoupon/add', data, success)
},
/**核销二维码 */
createQrCode(data, success) {
let url = 'createCustomerCouponQrCode/createQrCode'
api.get(url, data)
success(api.getLink(url))
},
getQrcode(data, callBack) {
api.get('createQrcode', data, callBack)
},
getDomain() {
return api.getDomain()
},
// 预约状态
getInviteStat(data, success) {
api.post('smartCarLife/inviteStat/merchant/list', data, success)
},
// 预约
inviteRecord(data, success) {
api.post('smartCarLife/inviteRecord/invite', data, success)
},
// 预约详情
getInviteDetail(data, success) {
api.get('smartCarLife/inviteRecord/detail', data, success)
},
/**获取openId */
getOpenId(data, success) {
api.get('jscode/getOpenId', data, success)
},
}