hookehuyr

fix(排行榜): 修复助力墙模式下排行榜显示问题

修改排行榜卡片和家庭排行页面的显示逻辑,当activeTab为'support'时不显示排名内容
将"助力榜"更名为"助力墙"以更准确描述功能
1 <!-- 1 <!--
2 * @Date: 2025-01-09 00:00:00 2 * @Date: 2025-01-09 00:00:00
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-10-27 14:49:01 4 + * @LastEditTime: 2025-10-28 13:33:56
5 * @FilePath: /lls_program/src/components/RankingCard.vue 5 * @FilePath: /lls_program/src/components/RankingCard.vue
6 * @Description: 排行榜卡片组件 6 * @Description: 排行榜卡片组件
7 --> 7 -->
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
73 </view> 73 </view>
74 74
75 <!-- 前三名展示 --> 75 <!-- 前三名展示 -->
76 - <view v-else class="top-three"> 76 + <view v-else-if="activeTab !== 'support'" class="top-three">
77 <!-- 第二名 --> 77 <!-- 第二名 -->
78 <view v-if="topRanks[1]" class="rank-item second"> 78 <view v-if="topRanks[1]" class="rank-item second">
79 <view class="crown"> 79 <view class="crown">
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
126 126
127 <!-- 我的排名卡片 --> 127 <!-- 我的排名卡片 -->
128 <!-- 特殊写法 因为直接写一个排名卡片排名数字有被截断问题 --> 128 <!-- 特殊写法 因为直接写一个排名卡片排名数字有被截断问题 -->
129 - <view v-if="myRank && topRanks.length" class="my-rank-section"> 129 + <view v-if="myRank && topRanks.length > 0 && activeTab !== 'support'" class="my-rank-section">
130 <view class="my-rank-content"> 130 <view class="my-rank-content">
131 <view class="my-rank-left"> 131 <view class="my-rank-left">
132 <view class="my-rank-number"> 132 <view class="my-rank-number">
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
145 </view> 145 </view>
146 </view> 146 </view>
147 </view> 147 </view>
148 - <view v-if="myRank && !topRanks.length" class="my-rank-section"> 148 + <view v-if="myRank && !topRanks.length && activeTab !== 'support'" class="my-rank-section">
149 <view class="my-rank-content"> 149 <view class="my-rank-content">
150 <view class="my-rank-left"> 150 <view class="my-rank-left">
151 <view class="my-rank-number"> 151 <view class="my-rank-number">
...@@ -388,7 +388,7 @@ const getTabDisplayName = (region) => { ...@@ -388,7 +388,7 @@ const getTabDisplayName = (region) => {
388 if (region.value === 'shanghai') { 388 if (region.value === 'shanghai') {
389 return '上海榜' 389 return '上海榜'
390 } else if (region.value === 'support') { 390 } else if (region.value === 'support') {
391 - return '助力' 391 + return '助力'
392 } else { 392 } else {
393 // 直接显示区域名称,如"黄浦区"、"杨浦区"等 393 // 直接显示区域名称,如"黄浦区"、"杨浦区"等
394 return region.text 394 return region.text
......
1 <!-- 1 <!--
2 * @Date: 2025-09-01 13:07:52 2 * @Date: 2025-09-01 13:07:52
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-10-27 14:49:16 4 + * @LastEditTime: 2025-10-28 13:32:48
5 * @FilePath: /lls_program/src/pages/FamilyRank/index.vue 5 * @FilePath: /lls_program/src/pages/FamilyRank/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
72 </view> 72 </view>
73 73
74 <!-- 前三名展示 --> 74 <!-- 前三名展示 -->
75 - <view v-else-if="!loading && topThreeData.length > 0" class="top-three"> 75 + <view v-else-if="!loading && topThreeData.length > 0 && activeTab !== 'support'" class="top-three">
76 <!-- 第二名 --> 76 <!-- 第二名 -->
77 <view v-if="topThreeData[1]" class="rank-item second"> 77 <view v-if="topThreeData[1]" class="rank-item second">
78 <!-- <view class="crown crown-silver">👑</view> --> 78 <!-- <view class="crown crown-silver">👑</view> -->
...@@ -150,13 +150,15 @@ ...@@ -150,13 +150,15 @@
150 <view v-else-if="!loading && activeTab !== 'support'" class="no-data"> 150 <view v-else-if="!loading && activeTab !== 'support'" class="no-data">
151 <view class="no-data-text">暂无{{ currentRegionName }}排行榜更多数据</view> 151 <view class="no-data-text">暂无{{ currentRegionName }}排行榜更多数据</view>
152 </view> 152 </view>
153 - <view v-else-if="!loading && activeTab === 'support'" class="no-data"> 153 + <!-- <view v-else-if="!loading && activeTab === 'support'" class="no-data">
154 <view class="no-data-text">暂无助力排行榜更多数据</view> 154 <view class="no-data-text">暂无助力排行榜更多数据</view>
155 - </view> 155 + </view> -->
156 +
157 + <!-- 弹幕显示助力榜内容 -->
156 </view> 158 </view>
157 159
158 <!-- 我的排名悬浮卡片 --> 160 <!-- 我的排名悬浮卡片 -->
159 - <view v-if="myRankInfo" class="my-rank-card"> 161 + <view v-if="myRankInfo && activeTab !== 'support'" class="my-rank-card">
160 <view class="my-rank-content"> 162 <view class="my-rank-content">
161 <view class="my-rank-left"> 163 <view class="my-rank-left">
162 <view class="my-rank-number"> 164 <view class="my-rank-number">
...@@ -207,7 +209,8 @@ import { ref, computed, onMounted } from 'vue' ...@@ -207,7 +209,8 @@ import { ref, computed, onMounted } from 'vue'
207 import Taro from '@tarojs/taro' 209 import Taro from '@tarojs/taro'
208 import { IconFont } from '@nutui/icons-vue-taro'; 210 import { IconFont } from '@nutui/icons-vue-taro';
209 import BackToTop from '@/components/BackToTop.vue' 211 import BackToTop from '@/components/BackToTop.vue'
210 -import NumberRoll from '@/components/NumberRoll.vue' 212 +// import NumberRoll from '@/components/NumberRoll.vue'
213 +import vueDanmaku from 'vue-danmaku'
211 // 默认头像 214 // 默认头像
212 const defaultAvatar = 'https://cdn.ipadbiz.cn/lls_prog/images/%E5%85%A8%E5%AE%B6%E7%A6%8F3_%E5%89%AF%E6%9C%AC.jpg?imageMogr2/strip/quality/60' 215 const defaultAvatar = 'https://cdn.ipadbiz.cn/lls_prog/images/%E5%85%A8%E5%AE%B6%E7%A6%8F3_%E5%89%AF%E6%9C%AC.jpg?imageMogr2/strip/quality/60'
213 const supportImg = 'https://cdn.ipadbiz.cn/lls_prog/images/support_img_1.png' 216 const supportImg = 'https://cdn.ipadbiz.cn/lls_prog/images/support_img_1.png'
...@@ -425,7 +428,7 @@ const getTabDisplayName = (region) => { ...@@ -425,7 +428,7 @@ const getTabDisplayName = (region) => {
425 if (region.value === 'shanghai') { 428 if (region.value === 'shanghai') {
426 return '上海榜' 429 return '上海榜'
427 } else if (region.value === 'support') { 430 } else if (region.value === 'support') {
428 - return '助力' 431 + return '助力'
429 } else { 432 } else {
430 // 直接显示区域名称,如"黄浦区"、"杨浦区"等 433 // 直接显示区域名称,如"黄浦区"、"杨浦区"等
431 return region.text 434 return region.text
......