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.
57 lines
1.1 KiB
JavaScript
57 lines
1.1 KiB
JavaScript
import { request } from "@/utils/request";
|
|
|
|
export default {
|
|
/**
|
|
* 获取列表
|
|
* @param {String} shop_id
|
|
*/
|
|
getData(data) {
|
|
return request({
|
|
url: "/user/getPayCoupon",
|
|
method: "POST",
|
|
data,
|
|
needLogin: true,
|
|
});
|
|
},
|
|
sendCoupon(data) {
|
|
return request({
|
|
url: "/user/sendCoupon",
|
|
method: "POST",
|
|
data,
|
|
needLogin: true,
|
|
});
|
|
},
|
|
getCat(data) {
|
|
return request({
|
|
url: "/common/payCouponCatList",
|
|
method: "POST",
|
|
data,
|
|
needLogin: true,
|
|
});
|
|
},
|
|
payCouponList(data) {
|
|
return request({
|
|
url: "/common/payCouponList",
|
|
method: "POST",
|
|
data,
|
|
needLogin: true,
|
|
});
|
|
},
|
|
getCoupon(data) {
|
|
return request({
|
|
url: "/common/getPayCoupon",
|
|
method: "POST",
|
|
data,
|
|
needLogin: true,
|
|
});
|
|
},
|
|
getBanner(data) {
|
|
return request({
|
|
url: "/common/getPayCouponBanner",
|
|
method: "POST",
|
|
data,
|
|
needLogin: true,
|
|
});
|
|
},
|
|
};
|