From c2215ffa677172227f9ca550386ed6ccd332a047 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Fri, 12 Dec 2025 17:05:05 +0800 Subject: [PATCH] =?UTF-8?q?style(=E5=9B=BA=E5=AE=9A=E6=8E=92=E8=A1=8C?= =?UTF-8?q?=E6=A6=9C):=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Ranking/KingAndQueen/TopList.vue | 134 ++++++----- src/views/Ranking/Overall/Ranking.vue | 3 + src/views/Ranking/WeeklyStar/WeeklyStar.vue | 210 ++++++++++-------- .../Ranking/WeeklyStar/components/topUser.vue | 30 +-- 4 files changed, 221 insertions(+), 156 deletions(-) diff --git a/src/views/Ranking/KingAndQueen/TopList.vue b/src/views/Ranking/KingAndQueen/TopList.vue index b0a786a..a8571df 100644 --- a/src/views/Ranking/KingAndQueen/TopList.vue +++ b/src/views/Ranking/KingAndQueen/TopList.vue @@ -86,12 +86,12 @@
{{ topUser.userInfo.userNickname }}
@@ -137,12 +137,12 @@ -
+
{{ gift.giftCandy }} @@ -192,7 +192,7 @@
{{ listItem.rank }}
@@ -218,7 +228,7 @@
{{ listItem.userNickname }}
-
+
{{ $t('user_id_prefix') }} {{ listItem.account }}
-
+
-
+
{{ listItem.quantity }}
@@ -380,12 +402,12 @@
{{ topOne.userInfo.userNickname }}
@@ -579,34 +601,48 @@ style=" position: absolute; inset: 0; + + padding: 2vw 4vw 0; + display: flex; align-items: center; justify-content: space-around; - padding: 2% 2% 0; gap: 4px; " >
-
-
+
+
{{ (myRanking.userSex == 1 ? myRanking.wealthRank : myRanking.charmRank) || 999 }}
+
+ +
-
+
{{ myRanking.wealthQuantity }}
-
+
{{ myRanking.charmQuantity }}
@@ -1055,31 +1109,15 @@ onUnmounted(() => { font-weight: 860; } -.topUserNickname { - font-size: 0.8em; -} - -.topUserNickname::-webkit-scrollbar { - display: none; -} - @media screen and (max-width: 360px) { * { font-size: 10px; } - - .topName { - font-size: 8px; - } } @media screen and (min-width: 360px) { * { - font-size: 16px; - } - - .topName { - font-size: 10px; + font-size: 12px; } } @@ -1087,19 +1125,11 @@ onUnmounted(() => { * { font-size: 24px; } - - .topName { - font-size: 20px; - } } @media screen and (min-width: 1024px) { * { font-size: 32px; } - - .topName { - font-size: 30px; - } } diff --git a/src/views/Ranking/Overall/Ranking.vue b/src/views/Ranking/Overall/Ranking.vue index 6a0c92c..e7a47b4 100644 --- a/src/views/Ranking/Overall/Ranking.vue +++ b/src/views/Ranking/Overall/Ranking.vue @@ -231,6 +231,7 @@ style=" display: block; width: 3em; + aspect-ratio: 1/1; border-radius: 50%; object-fit: cover; @@ -244,6 +245,7 @@ style=" flex: 1; min-width: 0; + padding: 0 4px; font-weight: 700; overflow: hidden; @@ -356,6 +358,7 @@ flex: 1; min-width: 0; font-weight: 700; + padding: 0 4px; overflow: hidden; white-space: nowrap; diff --git a/src/views/Ranking/WeeklyStar/WeeklyStar.vue b/src/views/Ranking/WeeklyStar/WeeklyStar.vue index 0d2a0f6..8cc31c7 100644 --- a/src/views/Ranking/WeeklyStar/WeeklyStar.vue +++ b/src/views/Ranking/WeeklyStar/WeeklyStar.vue @@ -164,13 +164,15 @@ style="margin-top: 3%; position: relative" @click="viewUserInfo(listItem.userId)" :imgUrl="imageUrl('itemUser')" - :contentStyle="`justify-content: flex-start;padding: 0 3%;gap: 4px;`" + :contentStyle="`justify-content: flex-start;padding: 0 3%;gap: 8px;`" >
-
+
{{ listItem.rank }}
@@ -188,8 +200,9 @@ :src="listItem.userAvatar || ''" alt="" style=" - width: 25%; - margin: 0 2%; + display: block; + width: 3em; + aspect-ratio: 1/1; border-radius: 50%; object-fit: cover; @@ -200,8 +213,10 @@
{{ listItem.userNickname }}
-
+
{{ $t('user_id_prefix') }} {{ listItem.account }}
-
- -
+
+ +
{{ listItem.quantity }}
@@ -384,103 +413,106 @@
-
- - +
- +
- -
-
{{ myRanking.rank || 999 }}
-
- - - -
-
- {{ myRanking.userNickname }} -
+
+ {{ myRanking.rank || 999 }}
- -
- -
- {{ myRanking.quantity || 0 }} -
+ + + + +
+ {{ myRanking.userNickname || '' }}
-
+ + +
+ +
+ {{ myRanking.quantity || 0 }} +
+
+ @@ -650,14 +682,14 @@ -
+
-
+
{{ gift.giftCandy }}
@@ -1167,10 +1199,6 @@ onUnmounted(() => { font-size: 0.8em; } -.UserNickname { - font-size: 0.8em; -} - @media screen and (max-width: 360px) { * { font-size: 10px; @@ -1179,7 +1207,7 @@ onUnmounted(() => { @media screen and (min-width: 360px) { * { - font-size: 16px; + font-size: 12px; } } diff --git a/src/views/Ranking/WeeklyStar/components/topUser.vue b/src/views/Ranking/WeeklyStar/components/topUser.vue index fb33040..98ba52f 100644 --- a/src/views/Ranking/WeeklyStar/components/topUser.vue +++ b/src/views/Ranking/WeeklyStar/components/topUser.vue @@ -58,7 +58,7 @@