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.
58 lines
1.0 KiB
58 lines
1.0 KiB
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,
|
|
},
|
|
}),
|
|
listByGoods: (id) =>
|
|
request({
|
|
url: 'coupon/listByGoods',
|
|
method: 'GET',
|
|
params: {
|
|
goods_id: id,
|
|
},
|
|
}),
|
|
get: (id) =>
|
|
request({
|
|
url: 'coupon/get',
|
|
method: 'POST',
|
|
params: {
|
|
id,
|
|
},
|
|
}),
|
|
commissionCouponList: () =>
|
|
request({
|
|
url: 'coupon/commissionCouponList',
|
|
method: 'GET',
|
|
}),
|
|
getIds: (ids) =>
|
|
request({
|
|
url: 'coupon/get',
|
|
method: 'POST',
|
|
params: {
|
|
id: ids,
|
|
},
|
|
}),
|
|
};
|
|
|