更改功德箱未显示完

This commit is contained in:
2022-03-14 14:34:51 +08:00
parent 35134a9aa2
commit dd4c5f4dfd
5 changed files with 8 additions and 17 deletions
+3 -5
View File
@@ -78,16 +78,14 @@ export default {
set(){ }
},
showTabbar() {
const path = tabbar.map(tab => tab.path);
const { name, query: { temple_id, hideTab } } = this.$route;
const path = tabbar.map(tab => tab.name);
const { name, query: { hideTab } } = this.$route;
// 等于寺庙功德箱时隐藏底部导航
console.log(name, temple_id !== '1')
if(name === 'merit-box' || (name === 'temple-list' && hideTab === '1')){
return false
}
return path.includes(this.$route.path);
return path.includes(this.$route.name);
},
paddingBottom() {
return this.showTabbar ? this.$refs.tabbar ? this.$refs.tabbar.$el.offsetHeight : 0 : 0;