|
@@ -7,6 +7,10 @@ const CouponApi = {
|
|
url: '/promotion/coupon-template/list-by-ids',
|
|
url: '/promotion/coupon-template/list-by-ids',
|
|
method: 'GET',
|
|
method: 'GET',
|
|
params: { ids },
|
|
params: { ids },
|
|
|
|
+ custom: {
|
|
|
|
+ showLoading: false, // 不展示 Loading,避免领取优惠劵时,不成功提示
|
|
|
|
+ showError: false,
|
|
|
|
+ },
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 获得优惠劵模版列表
|
|
// 获得优惠劵模版列表
|
|
@@ -47,6 +51,13 @@ const CouponApi = {
|
|
url: '/promotion/coupon/take',
|
|
url: '/promotion/coupon/take',
|
|
method: 'POST',
|
|
method: 'POST',
|
|
data: { templateId },
|
|
data: { templateId },
|
|
|
|
+ custom: {
|
|
|
|
+ auth: true,
|
|
|
|
+ showLoading: true,
|
|
|
|
+ loadingMsg: '领取中',
|
|
|
|
+ showSuccess: true,
|
|
|
|
+ successMsg: '领取成功',
|
|
|
|
+ },
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 获得优惠劵
|
|
// 获得优惠劵
|
|
@@ -79,6 +90,10 @@ const CouponApi = {
|
|
skuIds: skuIds.join(','),
|
|
skuIds: skuIds.join(','),
|
|
categoryIds: categoryIds.join(','),
|
|
categoryIds: categoryIds.join(','),
|
|
},
|
|
},
|
|
|
|
+ custom: {
|
|
|
|
+ showError: false,
|
|
|
|
+ showLoading: false, // 避免影响 settlementOrder 结算的结果
|
|
|
|
+ },
|
|
});
|
|
});
|
|
}
|
|
}
|
|
};
|
|
};
|