修改只在首页和排位赛显示顶部返回游戏
This commit is contained in:
@@ -30,7 +30,7 @@ defineProps({
|
||||
},
|
||||
showBackToGame: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
default: false,
|
||||
},
|
||||
});
|
||||
const isIos = ref(true);
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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 />
|
||||
|
||||
@@ -183,7 +183,6 @@ onUnmounted(() => {
|
||||
:title="battleId ? '大乱斗排位赛' : '搜索对手...'"
|
||||
:bgType="1"
|
||||
:onBack="onBack"
|
||||
:showBackToGame="false"
|
||||
>
|
||||
<view class="container">
|
||||
<block v-if="battleId">
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -249,7 +249,6 @@ onUnmounted(() => {
|
||||
:title="battleId ? '1V1排位赛' : '搜索对手...'"
|
||||
:bgType="1"
|
||||
:onBack="onBack"
|
||||
:showBackToGame="false"
|
||||
>
|
||||
<view class="container">
|
||||
<block v-if="battleId">
|
||||
|
||||
Reference in New Issue
Block a user