<view class="navbar" style="background:{{background}}!important;">
  <view style="{{'height: ' + statusBarHeight}}"></view>
  <view class='title-container'>
    <view class='capsule' tt:if="{{ back || home}}">
      <view bindtap='back' tt:if="{{back}}">
        <image style="left:36%;" src='./img/back.png'></image>            
      </view>
      <view bindtap='backHome' tt:if="{{home}}">
        <image src='img/home.png' style="width:60%;"></image>
      </view>
    </view>
    <view class='title' style="color:{{color}}!important">{{text}}</view>
    <picker bindchange="bindPickerChange" tt:if="{{showLocationIf}}" class="pick-box" value="{{index}}" range="{{array}}">
      <icon class='iconfont icon-daohangdizhiweizhi'></icon>
      <view class="picker locations">
        {{array[index]}}
        
      </view>
    </picker>
  </view>
</view>