Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-10-27 14:51:48 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1ceb925c12b19fd865370a908d82f136ef2d4c42
1ceb925c
1 parent
595eedd1
refactor: 移除上海地区特定显示逻辑并简化排名日期显示
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
src/components/RankingCard.vue
src/pages/FamilyRank/index.vue
src/components/RankingCard.vue
View file @
1ceb925
<!--
* @Date: 2025-01-09 00:00:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-10-27
09:49:49
* @LastEditTime: 2025-10-27
14:49:01
* @FilePath: /lls_program/src/components/RankingCard.vue
* @Description: 排行榜卡片组件
-->
...
...
@@ -42,11 +42,12 @@
<view class="rank-content" :class="{ 'content-switching': isContentSwitching }">
<!-- 排行榜日期 -->
<view class="rank-date relative">
<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>
<!-- <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> -->
<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>
<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>
</view>
<view v-if="activeTab === 'shanghai'" class="relative mb-2 text-white">
<
!-- <
view v-if="activeTab === 'shanghai'" class="relative mb-2 text-white">
<view class="flex items-center justify-center">
<text class="mr-2" style="font-size: 28rpx;">有</text>
<NumberRoll
...
...
@@ -58,7 +59,7 @@
/>
<text class="ml-2" style="font-size: 28rpx;"><text class="mr-1 text-base">+</text>组家庭参与排名</text>
</view>
</view>
</view>
-->
<!-- 助力榜空状态提示 -->
<view v-if="activeTab === 'support' && (!supportData || !supportData.families || supportData.families.length === 0)" class="support-empty-state">
...
...
src/pages/FamilyRank/index.vue
View file @
1ceb925
<!--
* @Date: 2025-09-01 13:07:52
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-10-27
09:51:02
* @LastEditTime: 2025-10-27
14:49:16
* @FilePath: /lls_program/src/pages/FamilyRank/index.vue
* @Description: 文件描述
-->
...
...
@@ -40,12 +40,13 @@
<!-- 排行榜日期 -->
<view v-if="!loading" class="rank-date relative">
<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>
<!-- <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> -->
<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>
<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>
</view>
<!-- 参与家庭数量显示 -->
<view v-if="!loading && activeTab === 'shanghai'" class="family-count-display">
<
!-- <
view v-if="!loading && activeTab === 'shanghai'" class="family-count-display">
<view class="flex items-center justify-center text-white mb-4">
<text class="mr-2" style="font-size: 28rpx;">有</text>
<NumberRoll
...
...
@@ -57,7 +58,7 @@
/>
<text class="ml-2" style="font-size: 28rpx;"><text class="mr-1 text-base">+</text>组家庭参与排名</text>
</view>
</view>
</view>
-->
<!-- 助力榜空状态提示 -->
<view v-if="!loading && activeTab === 'support' && (!supportData || !supportData.families || supportData.families.length === 0)" class="support-empty-state">
...
...
Please
register
or
login
to post a comment