fix:优化重新进入比赛页面箭数展示逻辑

This commit is contained in:
2026-05-13 10:10:38 +08:00
parent 47fe964c31
commit 996472953a
4 changed files with 35 additions and 23 deletions

View File

@@ -57,7 +57,6 @@ const signin = () => {
const loading = ref(false);
const pointBook = ref(null);
const showProgress = ref(false);
const heat = ref(0);
/** 房间号按钮动态定位样式position: fixed根据胶囊真实位置计算脱离 flex 流避免挤压标题) */
const battleRoomBtnStyle = ref({});
@@ -82,9 +81,6 @@ onMounted(() => {
pointBook.value = uni.getStorageSync("last-point-book");
}
}
if (currentPage.route === "pages/team-battle") {
showProgress.value = true;
}
// 仅在对战房间页获取胶囊位置,按钮用 fixed 定位精确贴靠胶囊左侧(脱离 flex 流,不挤压标题)
if (currentPage.route === "pages/battle-room") {
try {
@@ -189,7 +185,7 @@ onBeforeUnmount(() => {
}}</text
>
</view>
<view v-if="showProgress" class="battle-progress">
<view v-if="currentPage === 'pages/team-battle'" class="battle-progress">
<HeaderProgress />
</view>
<!-- 对战房间:整个胶囊为分享按钮,房号从 Store 读取fixed 定位紧靠系统胶囊左侧 -->