顶部跳转判断

This commit is contained in:
2023-07-27 19:04:50 +08:00
parent 8fbe531684
commit ff5f842595
6 changed files with 19 additions and 17 deletions

View File

@@ -40,7 +40,7 @@
</div>
</div>
<div class="btm-seach-btn-box dis-f al-item jus-x"
v-if="routePath !== '/seachPage' && routePath !== '/detail' && routePath !== '/apartmentDetail' && routePath !== '/edit'">
v-if="pageTopBarShow">
<div class="body-maxWidth dis-f" style="height:48px;">
<div class="tab-btn dis-f al-item jus-x" :class="{ 'tab-btn-click': item.path === tabBtnType }"
v-for="(item, i) in seachTab.data" :key="i" @click="changeTabBtnType(item)">
@@ -119,6 +119,8 @@ let topTabSelect = (type, item) => {
//页面跳转
const router = useRouter()
let tabBtnType = ref('/')
let pageTopBarShow= router.currentRoute.value.meta.topBarShow
let changeTabBtnType = (item) => {
tabBtnType.value = item.path
router.push({