diff --git a/src/pages/merchant/merchant-activity.vue b/src/pages/merchant/merchant-activity.vue index c618cba..885ca2c 100644 --- a/src/pages/merchant/merchant-activity.vue +++ b/src/pages/merchant/merchant-activity.vue @@ -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" }) diff --git a/src/sheep/constant/service-enum.ts b/src/sheep/constant/service-enum.ts index aaed80b..4feaea0 100644 --- a/src/sheep/constant/service-enum.ts +++ b/src/sheep/constant/service-enum.ts @@ -79,6 +79,9 @@ const actUserReceiveEnum = { "5": "用户不能参加此活动", "6": "其他错误", "99": "用户可以参加活动", + // 特殊 + "-100": "请在生日当月领取", + "-101": "请填写出生日期", } export default {