细节修改

This commit is contained in:
kron
2025-09-03 16:34:54 +08:00
parent bc17a3a584
commit 1f15183fc4
7 changed files with 67 additions and 18 deletions

View File

@@ -111,7 +111,7 @@ const comingSoon = () => {
@click="() => toPage('/pages/my-device')"
/>
<text v-if="!user.id">我的弓箭</text>
<text v-if="user.id && !device.deviceId">请绑定设备</text>
<text v-if="user.id && !device.deviceId">连接智能弓箭</text>
<text
v-if="user.id && device.deviceId"
class="truncate"

View File

@@ -126,6 +126,20 @@ function recoverData(battleInfo) {
};
roundResults.value.push(roundData);
}
} else {
[...battleInfo.redTeam, ...battleInfo.blueTeam].some((p) => {
if (p.id === user.value.id) {
const roundArrows = Object.values(p.shotHistory);
if (roundArrows.length) {
uni.$emit("update-shot", {
currentShot: roundArrows[roundArrows.length - 1].length,
totalShot: battleInfo.config.teamSize === 2 ? 3 : 2,
});
}
return true;
}
return false;
});
}
const lastIndex = roundResults.value.length - 1;
if (roundResults.value[lastIndex]) {
@@ -362,7 +376,7 @@ onHide(() => {
.players-row {
display: flex;
align-items: center;
justify-content: space-around;
justify-content: center;
margin-bottom: -7vw;
margin-top: -3vw;
}