uniapp【优化】:优化首页领取优惠券的提示

This commit is contained in:
花城
2025-02-13 10:42:37 +08:00
parent daaab366bd
commit 4fafd7bc5d

View File

@@ -66,9 +66,10 @@ export const receiveCoupon = async (id : string | number) => {
const receiveCoupon = await queryReceiveCoupon({ id, }); const receiveCoupon = await queryReceiveCoupon({ id, });
if (receiveCoupon.status) { if (receiveCoupon.status) {
uni.hideLoading();
handleShowToast(receiveCoupon.msg, 'success') handleShowToast(receiveCoupon.msg, 'success')
} else { } else {
uni.hideLoading();
handleShowToast(receiveCoupon.msg) handleShowToast(receiveCoupon.msg)
} }
uni.hideLoading();
} }