修复决金箭bug

This commit is contained in:
kron
2025-07-08 13:23:29 +08:00
parent 06d8244e83
commit 4f56bdb8f0
4 changed files with 16 additions and 7 deletions

View File

@@ -269,6 +269,7 @@ async function onReceiveMessage(messages = []) {
if (msg.constructor === MESSAGETYPES.FinalShoot) {
isFinalShoot.value = true;
showRoundTip.value = true;
tips.value = "准备开始决金箭";
}
if (msg.constructor === MESSAGETYPES.HalfTimeOver) {
startCount.value = false;
@@ -276,6 +277,7 @@ async function onReceiveMessage(messages = []) {
tips.value = "准备下半场";
}
if (msg.constructor === MESSAGETYPES.MatchOver) {
uni.setStorageSync("battle", msg.endStatus);
uni.redirectTo({
url: `/pages/battle-result?battleId=${msg.id}`,
});

View File

@@ -93,7 +93,9 @@ const checkBowData = () => {
/>
<text
v-if="data.goldenRound.blueTotal"
v-for="(arrow, index) in data.goldenRound.arrowHistory"
v-for="(arrow, index) in data.goldenRound.arrowHistory.filter(
(a) => a.playerId === blueTeam[0].playerId
)"
:key="index"
>
{{ arrow.ring }}环
@@ -110,7 +112,9 @@ const checkBowData = () => {
<Avatar :src="redTeam[0].avatar" :size="25" borderColor="#FF6767" />
<text
v-if="data.goldenRound.redTotal"
v-for="(arrow, index) in data.goldenRound.arrowHistory"
v-for="(arrow, index) in data.goldenRound.arrowHistory.filter(
(a) => a.playerId === redTeam[0].playerId
)"
:key="index"
>
{{ arrow.ring }}环