55 lines
925 B
JavaScript
55 lines
925 B
JavaScript
import request from '@/sheep/request';
|
|
|
|
export default {
|
|
// 我的拼团
|
|
list: (params) =>
|
|
request({
|
|
url: 'coupon',
|
|
method: 'GET',
|
|
params,
|
|
custom: {
|
|
showLoading: false,
|
|
},
|
|
}),
|
|
userCoupon: (params) =>
|
|
request({
|
|
url: '/app-api/promotion/coupon/page',
|
|
method: 'GET',
|
|
params,
|
|
}),
|
|
// 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: '/app-api/promotion/coupon/take',
|
|
method: 'POST',
|
|
data: {
|
|
templateId: id
|
|
},
|
|
params: {
|
|
templateId: id
|
|
},
|
|
}),
|
|
// get: (id) =>
|
|
// request({
|
|
// url: 'coupon/get/' + id,
|
|
// method: 'POST',
|
|
// }),
|
|
listByGoods: (id) =>
|
|
request({
|
|
url: 'coupon/listByGoods/' + id,
|
|
method: 'GET',
|
|
}),
|
|
}; |