调整优惠券部分

This commit is contained in:
2024-12-09 10:36:16 +08:00
parent 9bc3cb5584
commit fd7777e4f4
6 changed files with 48 additions and 10 deletions

View File

@@ -82,11 +82,11 @@ export const getIntegralRecord = async function({ page, size }) {
}
// 获取优惠券列表
export const getRedeemableCoupons = async function({ page, size, type }) {
export const getRedeemableCoupons = async function({ page = '', size = '', type }) {
return await GET(`/wx/getRedeemableCoupons?page=${page}&size=${size}&type=${type}`);
}
// 取优惠券列表
// 兑换/领取优惠券
export const redeemCoupons = async function({ id, type }) {
return await POST(`/wx/redeemCoupons`, { id, type });
}