细节修改
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user