一般在开发者工具中正常显示,而在真机上则会遮挡,ucharts,echarts基于层级比tab高,调过两者的z-index是不生效的
使用cover-view和cover-image标签 代替原来 view和image标签即可
<cover-view class="ba_main customHeader"> <cover-view class="statusBarHeight" style="height:{{statusBarHeight}};"></cover-view> <cover-view class="{{textAlign}} rel pa_lr_20" style="height:{{height}}"> <cover-view class="flex-between"> <cover-image src="wechat/image/personalcenterheadportrait.png" bindtap="openPersonal" style="width: 48rpx;height: 48rpx;"></cover-image> <cover-view class="hydlnr_1 loginName">12312313</cover-view> </cover-view> <cover-view class="ab mainTitle color_f">运力资源</cover-view> </cover-view> </cover-view>
标签:层级,自定义,遮挡,ucharts,tabbar,微信,echarts From: https://www.cnblogs.com/Fairy-Tail-blogs/p/16986655.html