hookehuyr

refactor: 移除上海地区特定显示逻辑并简化排名日期显示

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 09:49:49 4 + * @LastEditTime: 2025-10-27 14:49:01
5 * @FilePath: /lls_program/src/components/RankingCard.vue 5 * @FilePath: /lls_program/src/components/RankingCard.vue
6 * @Description: 排行榜卡片组件 6 * @Description: 排行榜卡片组件
7 --> 7 -->
...@@ -42,11 +42,12 @@ ...@@ -42,11 +42,12 @@
42 <view class="rank-content" :class="{ 'content-switching': isContentSwitching }"> 42 <view class="rank-content" :class="{ 'content-switching': isContentSwitching }">
43 <!-- 排行榜日期 --> 43 <!-- 排行榜日期 -->
44 <view class="rank-date relative"> 44 <view class="rank-date relative">
45 - <view class="flex items-center justify-center"><text class="mr-2">截止昨日</text>{{ currentDate }}<text v-if="activeTab !== 'shanghai'" class="ml-2">排名</text><IconFont name="ask" size="16" class="ml-2" @click="handleRankAskClick"></IconFont></view> 45 + <!-- <view class="flex items-center justify-center"><text class="mr-2">截止昨日</text>{{ currentDate }}<text v-if="activeTab !== 'shanghai'" class="ml-2">排名</text><IconFont name="ask" size="16" class="ml-2" @click="handleRankAskClick"></IconFont></view> -->
46 + <view class="flex items-center justify-center"><text class="mr-2">截止昨日</text>{{ currentDate }}<text class="ml-2">排名</text><IconFont name="ask" size="16" class="ml-2" @click="handleRankAskClick"></IconFont></view>
46 <view v-if="activeTab === 'support'" class="absolute font-bold text-white bg-orange-500 top-0 rounded-full px-4 py-1" style="right: 0rpx; top: 50rpx; font-size: 23rpx; z-index: 999;" @tap="joinOrganization">助力码</view> 47 <view v-if="activeTab === 'support'" class="absolute font-bold text-white bg-orange-500 top-0 rounded-full px-4 py-1" style="right: 0rpx; top: 50rpx; font-size: 23rpx; z-index: 999;" @tap="joinOrganization">助力码</view>
47 </view> 48 </view>
48 49
49 - <view v-if="activeTab === 'shanghai'" class="relative mb-2 text-white"> 50 + <!-- <view v-if="activeTab === 'shanghai'" class="relative mb-2 text-white">
50 <view class="flex items-center justify-center"> 51 <view class="flex items-center justify-center">
51 <text class="mr-2" style="font-size: 28rpx;">有</text> 52 <text class="mr-2" style="font-size: 28rpx;">有</text>
52 <NumberRoll 53 <NumberRoll
...@@ -58,7 +59,7 @@ ...@@ -58,7 +59,7 @@
58 /> 59 />
59 <text class="ml-2" style="font-size: 28rpx;"><text class="mr-1 text-base">+</text>组家庭参与排名</text> 60 <text class="ml-2" style="font-size: 28rpx;"><text class="mr-1 text-base">+</text>组家庭参与排名</text>
60 </view> 61 </view>
61 - </view> 62 + </view> -->
62 63
63 <!-- 助力榜空状态提示 --> 64 <!-- 助力榜空状态提示 -->
64 <view v-if="activeTab === 'support' && (!supportData || !supportData.families || supportData.families.length === 0)" class="support-empty-state"> 65 <view v-if="activeTab === 'support' && (!supportData || !supportData.families || supportData.families.length === 0)" class="support-empty-state">
......
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 09:51:02 4 + * @LastEditTime: 2025-10-27 14:49:16
5 * @FilePath: /lls_program/src/pages/FamilyRank/index.vue 5 * @FilePath: /lls_program/src/pages/FamilyRank/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -40,12 +40,13 @@ ...@@ -40,12 +40,13 @@
40 40
41 <!-- 排行榜日期 --> 41 <!-- 排行榜日期 -->
42 <view v-if="!loading" class="rank-date relative"> 42 <view v-if="!loading" class="rank-date relative">
43 - <view class="flex items-center justify-center"><text class="mr-2">截止昨日</text>{{ currentDate }}<text v-if="activeTab !== 'shanghai'" class="ml-2">排名</text><IconFont name="ask" size="14" class="ml-2" @click="handleRankAskClick"></IconFont></view> 43 + <!-- <view class="flex items-center justify-center"><text class="mr-2">截止昨日</text>{{ currentDate }}<text v-if="activeTab !== 'shanghai'" class="ml-2">排名</text><IconFont name="ask" size="14" class="ml-2" @click="handleRankAskClick"></IconFont></view> -->
44 + <view class="flex items-center justify-center"><text class="mr-2">截止昨日</text>{{ currentDate }}<text class="ml-2">排名</text><IconFont name="ask" size="14" class="ml-2" @click="handleRankAskClick"></IconFont></view>
44 <view v-if="activeTab === 'support'" class="absolute font-bold text-white bg-orange-500 top-0 rounded-full px-4 py-1" style="right: 40rpx; top: 50rpx; font-size: 23rpx;" @tap="joinOrganization">助力码</view> 45 <view v-if="activeTab === 'support'" class="absolute font-bold text-white bg-orange-500 top-0 rounded-full px-4 py-1" style="right: 40rpx; top: 50rpx; font-size: 23rpx;" @tap="joinOrganization">助力码</view>
45 </view> 46 </view>
46 47
47 <!-- 参与家庭数量显示 --> 48 <!-- 参与家庭数量显示 -->
48 - <view v-if="!loading && activeTab === 'shanghai'" class="family-count-display"> 49 + <!-- <view v-if="!loading && activeTab === 'shanghai'" class="family-count-display">
49 <view class="flex items-center justify-center text-white mb-4"> 50 <view class="flex items-center justify-center text-white mb-4">
50 <text class="mr-2" style="font-size: 28rpx;">有</text> 51 <text class="mr-2" style="font-size: 28rpx;">有</text>
51 <NumberRoll 52 <NumberRoll
...@@ -57,7 +58,7 @@ ...@@ -57,7 +58,7 @@
57 /> 58 />
58 <text class="ml-2" style="font-size: 28rpx;"><text class="mr-1 text-base">+</text>组家庭参与排名</text> 59 <text class="ml-2" style="font-size: 28rpx;"><text class="mr-1 text-base">+</text>组家庭参与排名</text>
59 </view> 60 </view>
60 - </view> 61 + </view> -->
61 62
62 <!-- 助力榜空状态提示 --> 63 <!-- 助力榜空状态提示 -->
63 <view v-if="!loading && activeTab === 'support' && (!supportData || !supportData.families || supportData.families.length === 0)" class="support-empty-state"> 64 <view v-if="!loading && activeTab === 'support' && (!supportData || !supportData.families || supportData.families.length === 0)" class="support-empty-state">
......