修改只在首页和排位赛显示顶部返回游戏
This commit is contained in:
@@ -30,7 +30,7 @@ defineProps({
|
|||||||
},
|
},
|
||||||
showBackToGame: {
|
showBackToGame: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const isIos = ref(true);
|
const isIos = ref(true);
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -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 />
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user