fix: 修复顶上导航栏看起来像是透明的

wangbaohua
GPU is all you need 4 years ago
parent 28d00f8750
commit 0914571cef
  1. 1
      IOReportSysMP/miniprogram/components/navigationBar/navigationBar.scss
  2. 1
      IOReportSysMP/miniprogram/components/navigationBar/navigationBar.wxml

@ -5,6 +5,7 @@
background: var(--navigation-bar-color); background: var(--navigation-bar-color);
display: flex; display: flex;
align-items: center; align-items: center;
z-index: 999;
.icon { .icon {
margin: 0 4px; margin: 0 4px;
line-height: 16px; line-height: 16px;

@ -3,6 +3,7 @@
<mp-icon bindtap="onBack" class="icon" type="field" icon="back" color="white" size="{{10}}"></mp-icon> <mp-icon bindtap="onBack" class="icon" type="field" icon="back" color="white" size="{{10}}"></mp-icon>
<text class="navigation-title">{{title}}</text> <text class="navigation-title">{{title}}</text>
</view> </view>
<view class="nav-bar" style="top:0px;background-color: #fff;height:{{navBarHeight - menuHeight}}px;"></view>
<view wx:if="{{onlyStations}}" class="nav-barindex" style="top:{{menuTop}}px;height:{{menuHeight}}px; min-height:{{menuHeight}}px;line-height:{{menuHeight}}px;"> <view wx:if="{{onlyStations}}" class="nav-barindex" style="top:{{menuTop}}px;height:{{menuHeight}}px; min-height:{{menuHeight}}px;line-height:{{menuHeight}}px;">
<text class="navigation-title">{{title}}</text> <text class="navigation-title">{{title}}</text>
</view> </view>

Loading…
Cancel
Save