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

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: { showBackToGame: {
type: Boolean, type: Boolean,
default: true, default: false,
}, },
}); });
const isIos = ref(true); const isIos = ref(true);

View File

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

View File

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

View File

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

View File

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

View File

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