diff --git a/src/components/PlayerSeats.vue b/src/components/PlayerSeats.vue index 47d011f..e662a5d 100644 --- a/src/components/PlayerSeats.vue +++ b/src/components/PlayerSeats.vue @@ -77,7 +77,7 @@ const seats = new Array(props.total).fill(1); .founder { position: absolute; background-color: #fed847; - top: 0; + top: 6px; color: #000; font-size: 10px; padding: 2px 5px; diff --git a/src/pages.json b/src/pages.json index 29f02cb..9ef883e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -98,6 +98,12 @@ }, { "path": "pages/ranking", + "style": { + "navigationBarTitleText": "排行赛" + } + }, + { + "path": "pages/rank-list", "style": { "navigationBarTitleText": "排行榜" } diff --git a/src/pages/battle-result.vue b/src/pages/battle-result.vue index 88cf3e8..f935b57 100644 --- a/src/pages/battle-result.vue +++ b/src/pages/battle-result.vue @@ -282,12 +282,6 @@ onMounted(async () => {}); top: 0; left: 0; } -.player-bg { - position: absolute; - width: 100%; - top: 0; - left: 0; -} .player-crown { position: relative; width: 27px; diff --git a/src/pages/battle-room.vue b/src/pages/battle-room.vue index b7e6c91..2fd4e69 100644 --- a/src/pages/battle-room.vue +++ b/src/pages/battle-room.vue @@ -342,21 +342,6 @@ onUnmounted(() => { height: calc(100% - 40px); overflow-x: hidden; } -.founder { - position: absolute; - background-color: #fed847; - top: 0; - color: #000; - font-size: 12px; - padding: 2px 5px; - border-top-left-radius: 10px; - border-bottom-right-radius: 10px; -} -.player-bg { - position: absolute; - width: 52px; - right: 0; -} .tips { color: #fff9; width: 100%; diff --git a/src/pages/index.vue b/src/pages/index.vue index 906d2eb..8c1f7f8 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -35,6 +35,12 @@ const toPage = (path) => { }); }; +const toRankListPage = () => { + uni.navigateTo({ + url: "rank-list", + }); +}; + onMounted(async () => { try { const deviceInfo = uni.getDeviceInfo(); @@ -117,7 +123,9 @@ onMounted(async () => { {{ i }} - 4563 + 4563 @@ -300,8 +308,12 @@ onMounted(async () => { border: none; font-size: 10px; line-height: 40px; - text-align: right; - padding-right: 5px; + display: flex; + justify-content: flex-end; +} + +.more-players > text { + margin-right: 4px; } .region-stats { diff --git a/src/pages/rank-list.vue b/src/pages/rank-list.vue new file mode 100644 index 0000000..0aa10a9 --- /dev/null +++ b/src/pages/rank-list.vue @@ -0,0 +1,270 @@ + + + + + diff --git a/src/pages/ranking.vue b/src/pages/ranking.vue index 2e59d45..c1fd18f 100644 --- a/src/pages/ranking.vue +++ b/src/pages/ranking.vue @@ -127,7 +127,7 @@ const toMeleeMatchPage = (gameType, teamSize) => { v-for="(rankType, index) in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]" :key="index" :style="{ - backgroundColor: index % 2 === 0 ? '#ffffff1f' : 'transparent', + backgroundColor: index % 2 === 0 ? '#9898981f' : 'transparent', }" class="rank-item" > diff --git a/src/static/rankbg.png b/src/static/rankbg.png new file mode 100644 index 0000000..6a86206 Binary files /dev/null and b/src/static/rankbg.png differ