细节调整

This commit is contained in:
kron
2025-07-10 19:55:30 +08:00
parent 7972dae398
commit e764160633
10 changed files with 63 additions and 71 deletions

View File

@@ -157,8 +157,11 @@ async function onReceiveMessage(messages = []) {
if (result.currentRound < 5) showRoundTip.value = true;
}
if (msg.constructor === MESSAGETYPES.FinalShoot) {
isFinalShoot.value = true;
showRoundTip.value = true;
if (!isFinalShoot.value) {
isFinalShoot.value = true;
showRoundTip.value = true;
tips.value = "准备开始决金箭";
}
}
if (msg.constructor === MESSAGETYPES.MatchOver) {
uni.redirectTo({
@@ -174,9 +177,6 @@ const onBack = () => {
uni.navigateBack();
}
};
const exitRoom = async () => {
uni.navigateBack();
};
onMounted(() => {
uni.$on("socket-inbox", onReceiveMessage);
});
@@ -249,11 +249,9 @@ onUnmounted(() => {
/>
</block>
<SModal :show="showModal" :onClose="() => (showModal = false)">
<view class="modal">
<SButton :onClick="exitRoom" width="200px" :rounded="20">
退出比赛
</SButton>
</view>
<view class="modal" :style="{ color: '#fff9' }"
>排位赛进行过程无法退出</view
>
</SModal>
</view>
<view :style="{ marginBottom: '20px' }">