fix:优化
This commit is contained in:
1 parent
3d5845893d
commit
f1d9b3cd31
1 file changed
+1
-4
@@ -199,13 +199,10 @@ const getCouponReceive = async () => {
|
||||
if (!isEligible) return
|
||||
}
|
||||
try {
|
||||
console.log("userDetail:", state.userDetail);
|
||||
return
|
||||
|
||||
uni.showLoading({ title: "正在领取...", mask: true })
|
||||
const { code, msg }: any = await actCouponApi.receive({
|
||||
couponId: state.actId,
|
||||
// receiveUserId:,
|
||||
receiveUserId: state.userDetail.userId,
|
||||
})
|
||||
if (code != 0) return uni.showToast({ title: msg || "领取失败", icon: "none", mask: true })
|
||||
uni.showToast({ title: "领取成功", icon: "success" })
|
||||
|
||||
Reference in new issue
Block a user