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-09-15 16:00:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5ce0f06ebd6b89c7ad69631212569824fad7b4f0
5ce0f06e
1 parent
4355d5d2
feat(排行榜): 替换emoji皇冠为图片并调整滤镜效果
将排行榜中的emoji皇冠替换为金银铜三种图片,同时调整了银铜皇冠的滤镜效果使其更自然
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
12 deletions
src/components/RankingCard.vue
src/pages/FamilyRank/index.vue
src/components/RankingCard.vue
View file @
5ce0f06
<!--
* @Date: 2025-01-09 00:00:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-1
1 21:35:04
* @LastEditTime: 2025-09-1
5 16:00:12
* @FilePath: /lls_program/src/components/RankingCard.vue
* @Description: 排行榜卡片组件
-->
...
...
@@ -45,7 +45,9 @@
<view class="top-three">
<!-- 第二名 -->
<view v-if="topRanks[1]" class="rank-item second">
<view class="crown crown-silver">👑</view>
<view class="crown">
<image src="https://cdn.ipadbiz.cn/lls_prog/images/crow-silver.png" class="w-5 h-5" mode="aspectFill" />
</view>
<view class="avatar">
<image :src="topRanks[1]?.avatar_url || defaultAvatar" class="avatar-img" mode="aspectFill" />
</view>
...
...
@@ -59,7 +61,9 @@
<!-- 第一名 -->
<view v-if="topRanks[0]" class="rank-item first">
<view class="crown crown-gold">👑</view>
<view class="crown">
<image src="https://cdn.ipadbiz.cn/lls_prog/images/crow-gold.png" class="w-5 h-5" mode="aspectFill" />
</view>
<view class="avatar">
<image :src="topRanks[0]?.avatar_url || defaultAvatar" class="avatar-img" mode="aspectFill" />
</view>
...
...
@@ -73,7 +77,9 @@
<!-- 第三名 -->
<view v-if="topRanks[2]" class="rank-item third">
<view class="crown crown-bronze">👑</view>
<view class="crown">
<image src="https://cdn.ipadbiz.cn/lls_prog/images/crow-bronze.png" class="w-5 h-5" mode="aspectFill" />
</view>
<view class="avatar">
<image :src="topRanks[2]?.avatar_url || defaultAvatar" class="avatar-img" mode="aspectFill" />
</view>
...
...
@@ -484,11 +490,11 @@ defineExpose({
}
&.crown-silver {
filter: hue-rotate(
45
deg) brightness(1.2);
filter: hue-rotate(
20
deg) brightness(1.2);
}
&.crown-bronze {
filter: hue-rotate(
25
deg) brightness(0.9);
filter: hue-rotate(
10
deg) brightness(0.9);
}
}
...
...
src/pages/FamilyRank/index.vue
View file @
5ce0f06
<!--
* @Date: 2025-09-01 13:07:52
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-15 15:
10:07
* @LastEditTime: 2025-09-15 15:
59:31
* @FilePath: /lls_program/src/pages/FamilyRank/index.vue
* @Description: 文件描述
-->
...
...
@@ -47,7 +47,10 @@
<view v-if="!loading && topThreeData.length > 0" class="top-three">
<!-- 第二名 -->
<view v-if="topThreeData[1]" class="rank-item second">
<view class="crown crown-silver">👑</view>
<!-- <view class="crown crown-silver">👑</view> -->
<view class="crown">
<image src="https://cdn.ipadbiz.cn/lls_prog/images/crow-silver.png" class="w-5 h-5" mode="aspectFill" />
</view>
<view class="avatar">
<image :src="topThreeData[1]?.avatar_url || defaultAvatar" class="avatar-img" mode="aspectFill" />
</view>
...
...
@@ -61,7 +64,9 @@
<!-- 第一名 -->
<view v-if="topThreeData[0]" class="rank-item first">
<view class="crown crown-gold">👑</view>
<view class="crown">
<image src="https://cdn.ipadbiz.cn/lls_prog/images/crow-gold.png" class="w-5 h-5" mode="aspectFill" />
</view>
<view class="avatar">
<image :src="topThreeData[0]?.avatar_url || defaultAvatar" class="avatar-img" mode="aspectFill" />
</view>
...
...
@@ -75,7 +80,9 @@
<!-- 第三名 -->
<view v-if="topThreeData[2]" class="rank-item third">
<view class="crown crown-bronze">👑</view>
<view class="crown">
<image src="https://cdn.ipadbiz.cn/lls_prog/images/crow-bronze.png" class="w-5 h-5" mode="aspectFill" />
</view>
<view class="avatar">
<image :src="topThreeData[2]?.avatar_url || defaultAvatar" class="avatar-img" mode="aspectFill" />
</view>
...
...
@@ -479,11 +486,11 @@ onMounted(async () => {
}
&.crown-silver {
filter: hue-rotate(
45
deg) brightness(1.2);
filter: hue-rotate(
20
deg) brightness(1.2);
}
&.crown-bronze {
filter: hue-rotate(
25
deg) brightness(0.9);
filter: hue-rotate(
10
deg) brightness(0.9);
}
}
...
...
Please
register
or
login
to post a comment