tabBar.wxml 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <view class="flex fix_nav_wp {{isFullscreen ? 'isFullscreen' : ''}}">
  2. <block wx:for="{{navList}}" wx:key="navDataId">
  3. <!-- 未选中 -->
  4. <block wx:if="{{item.style==0}}">
  5. <view class="nav_link" data-fn="{{item.fn}}" bindtap="gotoPage">
  6. <button class="defalut_btn {{item.current==0?'':'on_cor'}}">
  7. <view class="plus_sm">
  8. <image src="{{item.typea}}" class="imagesmall tabbarImg" />
  9. </view>
  10. <text class="txt">{{item.name}}</text>
  11. </button>
  12. </view>
  13. </block>
  14. <!-- 选中 -->
  15. <block wx:elif="{{item.style==1}}">
  16. <view class="nav_link" data-fn="{{item.fn}}" bindtap="gotoPage">
  17. <button class="defalut_btn {{item.current==0?'':'on_cor'}}">
  18. <view class="plus_sm">
  19. <image src='{{item.typec}}' class="imagesmall tabbarImg" />
  20. </view>
  21. <text class="txt txt_fb">{{item.name}}</text>
  22. </button>
  23. </view>
  24. </block>
  25. <!-- tabBar中间项 -->
  26. <block wx:elif="{{item.style==2}}">
  27. <button open-type="contact" bindcontact="handleContact" class = "kfbutton" plain="true">
  28. <image src='https://api.zhumi.tech/MiniProgram/image/talk.png' class="ranimg" />
  29. </button>
  30. </block>
  31. </block>
  32. </view>