From f2f7a7e8af4f2ae6df4e886f2c7a29a0d9293bd9 Mon Sep 17 00:00:00 2001 From: Megghy Date: Tue, 6 May 2025 18:19:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96PointGoodsView?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E7=A7=BB=E9=99=A4=E6=9C=AA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E5=85=91=E6=8D=A2=E6=97=B6=E9=97=B4=E5=92=8C?= =?UTF-8?q?=E5=85=91=E6=8D=A2=E4=B8=8A=E9=99=90=E6=A3=80=E6=9F=A5=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pointViews/PointGoodsView.vue | 28 ------------------------- 1 file changed, 28 deletions(-) diff --git a/src/views/pointViews/PointGoodsView.vue b/src/views/pointViews/PointGoodsView.vue index 85c5fe3..8e2e5eb 100644 --- a/src/views/pointViews/PointGoodsView.vue +++ b/src/views/pointViews/PointGoodsView.vue @@ -180,34 +180,6 @@ function getTooltip(goods: ResponsePointGoodModel): '开始兑换' | '当前积 return '舰长等级不足' } - // 在当前模型中没有兑换时间限制字段,可以根据需要添加相关功能 - // 如果将来添加了时间限制功能,可以取消下面注释并调整代码 - /* - if (goods.startTime && new Date() < new Date(goods.startTime)) { - return '兑换时间未到' - } - if (goods.endTime && new Date() > new Date(goods.endTime)) { - return '兑换已结束' - } - */ - - // 检查用户兑换上限 - // 注意:当前模型中没有 userBoughtCount 属性, - // 需要后端提供已购买数量信息才能实现此功能 - /* - if (goods.userBoughtCount !== undefined && goods.maxBuyCount !== undefined && - goods.userBoughtCount >= goods.maxBuyCount && goods.maxBuyCount > 0) { - return '已达兑换上限' - } - */ - - // 检查实物礼物的地址要求 - 仅对没有外部收集链接的实物礼物检查 - if (goods.type === GoodsTypes.Physical && - !goods.collectUrl && // 修复:如果有站外链接收集地址,不需要检查用户是否设置了地址 - (!biliAuth.value.address || biliAuth.value.address.length === 0)) { - return '需要设置地址' - } - return '开始兑换' // 可以兑换 }