You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
718 B
JavaScript
40 lines
718 B
JavaScript
import { request } from "@/utils/request";
|
|
|
|
export default {
|
|
/**
|
|
* 优惠券列表
|
|
*/
|
|
list(data) {
|
|
return request({
|
|
url: "/Coupon/List",
|
|
method: "GET",
|
|
data,
|
|
needLogin: true,
|
|
});
|
|
},
|
|
|
|
/**
|
|
* 领取优惠券
|
|
*/
|
|
getCoupon(data) {
|
|
return request({
|
|
url: "/Coupon/GetCoupon",
|
|
method: "GET",
|
|
data,
|
|
needLogin: true,
|
|
});
|
|
},
|
|
|
|
/**
|
|
* 已领取优惠券
|
|
*/
|
|
getUserCoupon(data) {
|
|
return request({
|
|
url: "/Coupon/GetUserCoupon",
|
|
method: "GET",
|
|
data,
|
|
needLogin: true,
|
|
});
|
|
},
|
|
};
|