39 lines
686 B
JavaScript
39 lines
686 B
JavaScript
|
import request from '@/sheep/request';
|
||
|
|
||
|
export default {
|
||
|
// 我的拼团
|
||
|
list: (params) =>
|
||
|
request({
|
||
|
url: 'coupon',
|
||
|
method: 'GET',
|
||
|
params,
|
||
|
custom: {
|
||
|
showLoading: false,
|
||
|
},
|
||
|
}),
|
||
|
userCoupon: (params) =>
|
||
|
request({
|
||
|
url: 'user/coupon',
|
||
|
method: 'GET',
|
||
|
params,
|
||
|
}),
|
||
|
detail: (id, user_coupon_id) =>
|
||
|
request({
|
||
|
url: 'coupon/' + id,
|
||
|
method: 'GET',
|
||
|
params: {
|
||
|
user_coupon_id,
|
||
|
},
|
||
|
}),
|
||
|
get: (id) =>
|
||
|
request({
|
||
|
url: 'coupon/get/' + id,
|
||
|
method: 'POST',
|
||
|
}),
|
||
|
listByGoods: (id) =>
|
||
|
request({
|
||
|
url: 'coupon/listByGoods/' + id,
|
||
|
method: 'GET',
|
||
|
}),
|
||
|
};
|