You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
776 B
46 lines
776 B
1 year ago
|
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/detail',
|
||
|
method: 'GET',
|
||
|
params: {
|
||
|
id: id,
|
||
|
user_coupon_id,
|
||
|
},
|
||
|
}),
|
||
|
get: (id) =>
|
||
|
request({
|
||
|
url: 'coupon/get',
|
||
|
method: 'POST',
|
||
|
params: {
|
||
|
id: id,
|
||
|
},
|
||
|
}),
|
||
|
listByGoods: (id) =>
|
||
|
request({
|
||
|
url: 'coupon/listByGoods',
|
||
|
method: 'GET',
|
||
|
params: {
|
||
|
goods_id: id,
|
||
|
},
|
||
|
}),
|
||
|
};
|