|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div id="tabbar" class="tabbar" ref="tabbar">
|
|
<div id="tabbar" class="tabbar" ref="tabbar">
|
|
- <div class="tabs flex-between" :style="{'padding-bottom':`${safeArea?'34px':'10px'}`}">
|
|
|
|
|
|
+ <div class="tabs flex-between" :style="{'padding-bottom':`${safeAreaHeight}`}">
|
|
<div class="item flex-center" @click="switchTab(0)">
|
|
<div class="item flex-center" @click="switchTab(0)">
|
|
<img :src="`${assetsUrl}tabbar-friends-${tabbarIndex===0?'on':'off'}.png`" class="tab-img"/>
|
|
<img :src="`${assetsUrl}tabbar-friends-${tabbarIndex===0?'on':'off'}.png`" class="tab-img"/>
|
|
<div class="tab-text font22 fw400" :class="tabbarIndex===0?'tab-text-active':''">
|
|
<div class="tab-text font22 fw400" :class="tabbarIndex===0?'tab-text-active':''">
|
|
@@ -53,6 +53,9 @@
|
|
computed:{
|
|
computed:{
|
|
tabbarIndex(){
|
|
tabbarIndex(){
|
|
return this.$store.state.tabbarIndex;
|
|
return this.$store.state.tabbarIndex;
|
|
|
|
+ },
|
|
|
|
+ safeAreaHeight(){
|
|
|
|
+ return localStorage.getItem('safeBottomHeight')||10
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|