tabbar.wxml 1.2 KB

123456789101112131415161718192021
  1. <!-- <view class="tabbar_box {{isIphoneX?'iphoneX-height':''}}" style="background-color:{{tabbar.backgroundColor}}"> -->
  2. <view class="tabbar_box {{isIphoneX?'iphoneX-height':''}}">
  3. <!-- <image src="../../img/tabBg.png" style="position: absolute;top: -24rpx;left: 0;height: 120%;width: 100%;" mode="" /> -->
  4. <block wx:for="{{tabbar.list}}" wx:key="pagePath">
  5. <view wx:if="{{item.isSpecial}}" class="tabbar_nav" hover-class="none" data-url="{{item.pagePath}}" style="color:{{tabbar.selectedColor}}" open-type="navigate" bindtap='navigator_url'>
  6. <view class='special-wrapper'>
  7. <image class="tabbar_icon" src="{{item.iconPath}}"></image>
  8. </view>
  9. </view>
  10. <view wx:else hover-class="none" data-url="{{item.pagePath}}" class="color:{{item.selected ? 'longTab' : 'shortTab'}} tabbar_nav" bindtap='navigator_url'>
  11. <!-- <image class="tabbar_icon" src="{{item.selected ? item.selectedIconPath : item.iconPath}}"></image> -->
  12. <image class="tabbar_icon" src="{{item.selected ? item.selectedIconPath : item.iconPath}}"></image>
  13. <!-- <view>{{item.text}}</view> -->
  14. <!-- 红点 -->
  15. <!-- <view class="redDot" wx:if="{{item.pagePath=='/pages/mine/index'}}"> -->
  16. <!-- </view> -->
  17. </view>
  18. </block>
  19. </view>
  20. <!-- </view> -->