From 7487e7224aa8377492e583bc3ad4d3466d030201 Mon Sep 17 00:00:00 2001
From: Zuncle <34310384@qq.com>
Date: Wed, 25 Mar 2026 22:01:22 +0800
Subject: [PATCH] =?UTF-8?q?feat(=E6=97=A0=E9=99=90=E8=B5=8F):=20=E6=81=A2?=
=?UTF-8?q?=E5=A4=8D=E5=A5=96=E6=B1=A0=E6=9F=A5=E7=9C=8B=E5=85=A8=E9=83=A8?=
=?UTF-8?q?=E5=BC=B9=E7=AA=97=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=8F=82=E8=80=83?=
=?UTF-8?q?=E4=BB=B7=E5=92=8C=E6=A6=82=E7=8E=87=E6=80=BB=E8=A7=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 恢复无限赏页面"查看全部"按钮和 RewardsPopup 弹窗
- RewardsPopup 顶部新增按档次分类的中奖率概览条
- 奖品项显示参考价(来自后端 price_snapshot_cents)
- 每个奖品图片左下角添加档次标签(S赏/A赏/BOSS赏等)
- normalizeRewards 新增 product_price 字段提取
- 理性消费提示改为始终显示
---
components/activity/RewardsPopup.vue | 188 ++++++++++++++++--
components/activity/RewardsPreview.vue | 2 +-
pages-activity/activity/wuxianshang/index.vue | 7 +-
utils/activity.js | 3 +-
4 files changed, 175 insertions(+), 25 deletions(-)
diff --git a/components/activity/RewardsPopup.vue b/components/activity/RewardsPopup.vue
index 5f8fae0..fd756b7 100755
--- a/components/activity/RewardsPopup.vue
+++ b/components/activity/RewardsPopup.vue
@@ -6,21 +6,38 @@
{{ title }}
×
+
+
+
+
+
+ {{ group.level }}赏
+ {{ group.totalPercent }}%
+
+
+
-
+
+
+ {{ group.level }}赏
+
{{ item.title || '-' }}
BOSS
- 单项概率 {{ formatPercent(item.percent) }}
+ 参考价:¥{{ item.product_price > 0 ? (item.product_price / 100).toFixed(2) : '--' }}
@@ -54,6 +71,22 @@ defineProps({
})
defineEmits(['update:visible'])
+
+/** 概率总览圆点颜色 class */
+function getDotClass(level) {
+ if (level === 'BOSS') return 'dot-boss'
+ if (level === 'S' || level === 'Last') return 'dot-rare'
+ if (level === 'A') return 'dot-a'
+ return 'dot-normal'
+}
+
+/** 分组标签颜色 class */
+function getBadgeClass(level) {
+ if (level === 'BOSS') return 'badge-boss'
+ if (level === 'S' || level === 'Last') return 'badge-rare'
+ if (level === 'A') return 'badge-a'
+ return ''
+}