修改只在首页和排位赛显示顶部返回游戏

This commit is contained in:
kron
2025-07-16 15:55:45 +08:00
parent 492412ce4b
commit c0dd20cb3f
6 changed files with 4 additions and 11 deletions

View File

@@ -30,7 +30,7 @@ defineProps({
},
showBackToGame: {
type: Boolean,
default: true,
default: false,
},
});
const isIos = ref(true);

View File

@@ -473,12 +473,7 @@ onUnmounted(() => {
</script>
<template>
<Container
title="对战"
:onBack="onBack"
:bgType="battleId ? 1 : 0"
:showBackToGame="false"
>
<Container title="对战" :onBack="onBack" :bgType="battleId ? 1 : 0">
<view class="standby-phase" v-if="step === 1">
<Guide>
<view class="battle-guide">

View File

@@ -98,7 +98,7 @@ const comingSoon = () => {
</script>
<template>
<Container :isHome="true">
<Container :isHome="true" :showBackToGame="true">
<view class="container" :style="{ paddingTop: isIos ? '100rpx' : '70rpx' }">
<UserHeader showRank :onSignin="() => (showModal = true)" />
<BackToGame />

View File

@@ -183,7 +183,6 @@ onUnmounted(() => {
:title="battleId ? '大乱斗排位赛' : '搜索对手...'"
:bgType="1"
:onBack="onBack"
:showBackToGame="false"
>
<view class="container">
<block v-if="battleId">

View File

@@ -143,7 +143,7 @@ onHide(() => {
</script>
<template>
<Container title="排位赛">
<Container title="排位赛" :showBackToGame="true">
<view class="container" @click="() => (showSeasonList = false)">
<view class="ranking-my-data" v-if="user.id">
<view>

View File

@@ -249,7 +249,6 @@ onUnmounted(() => {
:title="battleId ? '1V1排位赛' : '搜索对手...'"
:bgType="1"
:onBack="onBack"
:showBackToGame="false"
>
<view class="container">
<block v-if="battleId">