完成排位匹配调试

This commit is contained in:
kron
2026-02-09 10:40:40 +08:00
parent 2044821e4d
commit 1a5a488776
6 changed files with 30 additions and 37 deletions

View File

@@ -31,7 +31,7 @@ function exit() {
onLoad(async (options) => {
if (!options.battleId) return;
const myId = user.value.id;
const result = await getBattleAPI(options.battleId || "59090720979554304");
const result = await getBattleAPI(options.battleId || "60049406950510592");
data.value = result;
if (result.winTeam) {
ifWin.value = result.teams[result.winTeam].players.some(
@@ -246,7 +246,7 @@ const checkBowData = () => {
</block>
<view
class="battle-e"
:style="{ marginTop: data.way === 2 ? '20px' : '20vw' }"
:style="{ marginTop: data.mode > 3 ? '20px' : '20vw' }"
>
<image src="../static/row-yellow-bg.png" mode="widthFix" />
<view class="team-avatar">
@@ -257,12 +257,12 @@ const checkBowData = () => {
/>
<text
:style="{ backgroundColor: '#5fadff' }"
v-if="data.way === 1 && myTeam === 1"
v-if="data.mode <= 3 && myTeam === 1"
>蓝队</text
>
<text
:style="{ backgroundColor: '#ff6060' }"
v-if="data.way === 1 && myTeam === 2"
v-if="data.mode <= 3 && myTeam === 2"
>红队</text
>
</view>
@@ -273,7 +273,7 @@ const checkBowData = () => {
你的积分 {{ totalPoints > 0 ? "+" + totalPoints : totalPoints }}
</text>
</view>
<text v-if="data.way === 2" class="description">
<text v-if="data.mode > 3" class="description">
{{
getBattleResultTips(data.way, data.mode, {
win: ifWin,