更改功德箱未显示完
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="temple-list" :style="{height: root.minHeight - root.tabHeight + 'px'}">
|
||||
<div class="temple-list" :style="{height: root.minHeight + 'px'}">
|
||||
<div class="topbar" ref="topbar">
|
||||
<van-nav-bar left-arrow :title="$route.meta.title" v-if="$route.meta.showNavBar" @click-left="$router.back()" :style="{backgroundColor: $route.meta.navBarBackgroundColor}" />
|
||||
<van-search v-model="keyword" show-action action-text="搜索" placeholder="请输入寺院、方丈、监院名称" @search="onSearch" @cancel="onCancel">
|
||||
@@ -73,11 +73,13 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
console.log(this.parentHeight)
|
||||
this.$nextTick(() => {
|
||||
console.log(this.$refs.topbar.offsetHeight)
|
||||
this.containerHeight = this.parentHeight - this.$refs.topbar.offsetHeight - 100;
|
||||
})
|
||||
setTimeout(() => {
|
||||
if(this.query.hideTab === '1'){
|
||||
this.containerHeight = this.root.minHeight - this.$refs.topbar.offsetHeight;
|
||||
} else {
|
||||
this.containerHeight = this.root.minHeight - this.$refs.topbar.offsetHeight - 100;
|
||||
}
|
||||
}, 50)
|
||||
|
||||
if(this.query.search){
|
||||
this.keyword = this.query.search;
|
||||
|
||||
Reference in New Issue
Block a user