list.js
1.46 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
import api from '../../../common/api';
export default {
listData(param) {
return api.get({
url: '/coupon/getAllCouponForDiscountList.do',
data: {
status: param.status
},
api: 'store'
});
},
experienceListData(param) {
return api.get({
url: '/coupon/getAllCouponForExperienceList.do',
data: {
status: param.status
},
api: 'store'
});
},
coinsListData(params) {
return api.get({
url: '',
data: {
method: 'app.yohocoin.lists',
...params
}
});
},
/**
* [球鞋机核销体验券]
* @param {[type]} param [{
* uid:'', id:'体验券ID',coupon_code: '', coupon_id: '', user_id: '',
* key: '', imei: '', device_id: '', pulse: ''
* }]
* @return {[type]} [{}]
*/
useBasketballCoupon(param) {
return api.get({
url: '/coupon/useBasketballCoupon',
data: param,
api: 'store'
});
},
/**
* [判断用户是否在要求范围以内]
* @param {[type]} param [{
* longitude:'经度', latitude:'纬度',checkCoupon: '1:400M,0:80KM'
* }]
* @return {[type]} [{}]
*/
ifOutOfLimit(param) {
return api.get({
url: '/basketballEvent/ifOutOfLimit.do',
data: param,
api: 'store'
});
}
};