修复决金箭bug
This commit is contained in:
@@ -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}`,
|
||||
});
|
||||
|
||||
@@ -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 }}环
|
||||
|
||||
Reference in New Issue
Block a user