diff --git a/frontend/pages/profile/hisWorks.vue b/frontend/pages/profile/hisWorks.vue index 2a2f080..a036c8c 100644 --- a/frontend/pages/profile/hisWorks.vue +++ b/frontend/pages/profile/hisWorks.vue @@ -81,6 +81,8 @@ @tap="goToAssetDetail(item.id)"> + + { return Number(score).toLocaleString(); }; +const rankIcons = [ + '/static/rank/rank-icon1.png', + '/static/rank/rank-icon2.png', + '/static/rank/rank-icon3.png', +]; + // 在展作品列表 const exhibitionWorks = ref([]); @@ -502,6 +510,29 @@ onMounted(() => { padding-left: 20%; } +/* 排名图标 - 排名越靠前越大 */ +.rank-icon { + flex-shrink: 0; + /* margin-right: 8rpx; */ + position: relative; + left: 32rpx; +} + +.rank-icon-1 { + width: 72rpx; + height: 88rpx; +} + +.rank-icon-2 { + width: 64rpx; + height: 78rpx; +} + +.rank-icon-3 { + width: 56rpx; + height: 68rpx; +} + .liked-cover-wrap { width: 88rpx; height: 88rpx; diff --git a/frontend/pages/profile/myWorks.vue b/frontend/pages/profile/myWorks.vue index 3d38687..0ccff33 100644 --- a/frontend/pages/profile/myWorks.vue +++ b/frontend/pages/profile/myWorks.vue @@ -101,7 +101,7 @@ - + @@ -291,9 +291,9 @@ const handleExhibitionCardTap = (item, index) => { }; const rankIcons = [ - '/static/rank/rank-icon1.png', - '/static/rank/rank-icon2.png', - '/static/rank/rank-icon3.png', + '/static/square/icon1.png', + '/static/square/icon2.png', + '/static/square/icon3.png', ]; const formatScore = (score) => { @@ -773,12 +773,26 @@ onShow(() => { padding-left: 20%; } -/* 排名徽章 */ -.rank-icon-img { - width: 56rpx; - height: 68rpx; +/* 排名图标 - 排名越靠前越大 */ +.rank-icon { flex-shrink: 0; - margin-right: 8rpx; + position: relative; + left: 32rpx; +} + +.rank-icon-1 { + width: 96rpx; + height: 128rpx; +} + +.rank-icon-2 { + width: 72rpx; + height: 104rpx; +} + +.rank-icon-3 { + width: 64rpx; + height: 88rpx; } .rank-number-badge { diff --git a/frontend/static/square/icon1.png b/frontend/static/square/icon1.png new file mode 100644 index 0000000..5915f69 Binary files /dev/null and b/frontend/static/square/icon1.png differ diff --git a/frontend/static/square/icon2.png b/frontend/static/square/icon2.png new file mode 100644 index 0000000..3680b4b Binary files /dev/null and b/frontend/static/square/icon2.png differ diff --git a/frontend/static/square/icon3.png b/frontend/static/square/icon3.png new file mode 100644 index 0000000..286e1f5 Binary files /dev/null and b/frontend/static/square/icon3.png differ