index.wxml 1.0 KB

1234567891011121314151617
  1. <view class="tabbar_box" style="background-color:{{tabbar.backgroundColor}}">
  2. <block wx:for="{{tabbar.list}}" wx:key="id">
  3. <navigator wx:if="{{index!=2}}" class="tabbar_nav" hidden="{{open_tabbar_type==0&&index==1}}" hover-class="none" url="{{item.pagePath}}" style="color:{{item.selected ? tabbar.selectedColor : tabbar.color}}" open-type="switchTab">
  4. <view class='tabbar_icon' data-num="{{cartNum}}">
  5. <image class='img' src="{{item.selected ? item.selectedIconPath : item.iconPath}}"></image>
  6. <view class="cart-num" wx:if="{{cartNum && index==3}}">{{cartNum}}</view>
  7. </view>
  8. <text>{{item.text}}</text>
  9. </navigator>
  10. <view wx:else class="tabbar_nav" hidden="{{open_tabbar_out_weapp==0&&index==2}}" style="color:{{item.selected ? tabbar.selectedColor : tabbar.color}}" bindtap='goWeapp'>
  11. <view class='tabbar_icon'>
  12. <image class='img' src="{{item.selected ? item.selectedIconPath : item.iconPath}}"></image>
  13. </view>
  14. <text>{{item.text}}</text>
  15. </view>
  16. </block>
  17. </view>