细节完善
This commit is contained in:
@@ -113,6 +113,7 @@ watch(
|
|||||||
}
|
}
|
||||||
.player > image {
|
.player > image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
.player > text {
|
.player > text {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ onLoad(async (options) => {
|
|||||||
const myId = user.value.id;
|
const myId = user.value.id;
|
||||||
if (options.battleId) {
|
if (options.battleId) {
|
||||||
const result = await getGameAPI(
|
const result = await getGameAPI(
|
||||||
options.battleId || "BATTLE-1755230224461209000-539"
|
options.battleId || "BATTLE-1755841244966457660-735"
|
||||||
);
|
);
|
||||||
data.value = {
|
data.value = {
|
||||||
...result,
|
...result,
|
||||||
@@ -129,14 +129,19 @@ const checkBowData = () => {
|
|||||||
<image src="../static/title-mvp.png" mode="widthFix" />
|
<image src="../static/title-mvp.png" mode="widthFix" />
|
||||||
<text
|
<text
|
||||||
>斩获<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
|
>{{ data.mvps[0].totalRings }}</text
|
||||||
>环</text
|
>环</text
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="data.mvps && data.mvps.length">
|
<view v-if="data.mvps && data.mvps.length">
|
||||||
<view v-for="(player, index) in data.mvps" :key="index">
|
<view v-for="(player, index) in data.mvps" :key="index">
|
||||||
<view class="team-avatar" :style="{ transform: 'rotate(10deg)' }">
|
<view class="team-avatar">
|
||||||
<Avatar
|
<Avatar
|
||||||
:src="player.avatar"
|
:src="player.avatar"
|
||||||
:size="40"
|
:size="40"
|
||||||
@@ -193,37 +198,37 @@ const checkBowData = () => {
|
|||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
v-if="index === 0"
|
v-if="player.rank === 1"
|
||||||
class="player-bg"
|
class="player-bg"
|
||||||
src="../static/melee-player-bg1.png"
|
src="../static/melee-player-bg1.png"
|
||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
/>
|
/>
|
||||||
<image
|
<image
|
||||||
v-if="index === 1"
|
v-if="player.rank === 2"
|
||||||
class="player-bg"
|
class="player-bg"
|
||||||
src="../static/melee-player-bg2.png"
|
src="../static/melee-player-bg2.png"
|
||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
/>
|
/>
|
||||||
<image
|
<image
|
||||||
v-if="index === 2"
|
v-if="player.rank === 3"
|
||||||
class="player-bg"
|
class="player-bg"
|
||||||
src="../static/melee-player-bg3.png"
|
src="../static/melee-player-bg3.png"
|
||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
/>
|
/>
|
||||||
<image
|
<image
|
||||||
v-if="index === 0"
|
v-if="player.rank === 1"
|
||||||
class="player-crown"
|
class="player-crown"
|
||||||
src="../static/champ1.png"
|
src="../static/champ1.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<image
|
<image
|
||||||
v-if="index === 1"
|
v-if="player.rank === 2"
|
||||||
class="player-crown"
|
class="player-crown"
|
||||||
src="../static/champ2.png"
|
src="../static/champ2.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
<image
|
<image
|
||||||
v-if="index === 2"
|
v-if="player.rank === 3"
|
||||||
class="player-crown"
|
class="player-crown"
|
||||||
src="../static/champ3.png"
|
src="../static/champ3.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
|
|||||||
@@ -328,7 +328,8 @@ onHide(() => {});
|
|||||||
src="https://static.shelingxingqiu.com/attachment/2025-08-13/dc0x1p59iab6cvbhqc.png"
|
src="https://static.shelingxingqiu.com/attachment/2025-08-13/dc0x1p59iab6cvbhqc.png"
|
||||||
mode="widthFix"
|
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>
|
||||||
<view v-for="(item, index) in players" :key="index">
|
<view v-for="(item, index) in players" :key="index">
|
||||||
<Avatar v-if="item.id" :src="item.avatar" :size="36" />
|
<Avatar v-if="item.id" :src="item.avatar" :size="36" />
|
||||||
|
|||||||
Reference in New Issue
Block a user