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 }}赏 + {{ 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 '' +}