feat:优化领取判断
This commit is contained in:
1 parent
3a2a086db0
commit
3d5845893d
2 files changed
+7
No files matched your search
@@ -199,9 +199,13 @@ 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:,
|
||||
})
|
||||
if (code != 0) return uni.showToast({ title: msg || "领取失败", icon: "none", mask: true })
|
||||
uni.showToast({ title: "领取成功", icon: "success" })
|
||||
|
||||
@@ -79,6 +79,9 @@ const actUserReceiveEnum = {
|
||||
"5": "用户不能参加此活动",
|
||||
"6": "其他错误",
|
||||
"99": "用户可以参加活动",
|
||||
// 特殊
|
||||
"-100": "请在生日当月领取",
|
||||
"-101": "请填写出生日期",
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in new issue
Block a user