细节完善

This commit is contained in:
kron
2025-08-22 16:04:39 +08:00
parent 73e35a5506
commit 7a9439567f
3 changed files with 17 additions and 10 deletions

View File

@@ -113,6 +113,7 @@ watch(
}
.player > image {
width: 100%;
min-height: 100%;
}
.player > text {
position: absolute;

View File

@@ -24,7 +24,7 @@ onLoad(async (options) => {
const myId = user.value.id;
if (options.battleId) {
const result = await getGameAPI(
options.battleId || "BATTLE-1755230224461209000-539"
options.battleId || "BATTLE-1755841244966457660-735"
);
data.value = {
...result,
@@ -129,14 +129,19 @@ const checkBowData = () => {
<image src="../static/title-mvp.png" mode="widthFix" />
<text
>斩获<text
:style="{ color: '#fed847', fontSize: '18px', margin: '0 2px' }"
:style="{
color: '#fed847',
fontSize: '18px',
margin: '0 3px',
fontWeight: '600',
}"
>{{ data.mvps[0].totalRings }}</text
></text
>
</view>
<view v-if="data.mvps && data.mvps.length">
<view v-for="(player, index) in data.mvps" :key="index">
<view class="team-avatar" :style="{ transform: 'rotate(10deg)' }">
<view class="team-avatar">
<Avatar
:src="player.avatar"
:size="40"
@@ -193,37 +198,37 @@ const checkBowData = () => {
}"
>
<image
v-if="index === 0"
v-if="player.rank === 1"
class="player-bg"
src="../static/melee-player-bg1.png"
mode="aspectFill"
/>
<image
v-if="index === 1"
v-if="player.rank === 2"
class="player-bg"
src="../static/melee-player-bg2.png"
mode="aspectFill"
/>
<image
v-if="index === 2"
v-if="player.rank === 3"
class="player-bg"
src="../static/melee-player-bg3.png"
mode="aspectFill"
/>
<image
v-if="index === 0"
v-if="player.rank === 1"
class="player-crown"
src="../static/champ1.png"
mode="widthFix"
/>
<image
v-if="index === 1"
v-if="player.rank === 2"
class="player-crown"
src="../static/champ2.png"
mode="widthFix"
/>
<image
v-if="index === 2"
v-if="player.rank === 3"
class="player-crown"
src="../static/champ3.png"
mode="widthFix"

View File

@@ -328,7 +328,8 @@ onHide(() => {});
src="https://static.shelingxingqiu.com/attachment/2025-08-13/dc0x1p59iab6cvbhqc.png"
mode="widthFix"
/>
<image src="../static/title-2v2.png" mode="widthFix" />
<image v-if="room.count === 4" src="../static/title-2v2.png" mode="widthFix" />
<image v-if="room.count === 6" src="../static/title-3v3.png" mode="widthFix" />
<view>
<view v-for="(item, index) in players" :key="index">
<Avatar v-if="item.id" :src="item.avatar" :size="36" />