tabBar.wxml 654 B

12345678910111213
  1. <!--component/tabBar/tabBar.wxml-->
  2. <view class="container" style="position: absolute; bottom: 0;left: 0;">
  3. <view class="tabbar">
  4. <view wx:for="{{tabItemJson}}" wx:key="index">
  5. <view class="tabbar_item" bindtap="bindTabItem" id="{{index}}">
  6. <image wx:if="{{currentTab==index}}" id="{{index}}" class="icon" src="{{item.selectedIcon}}"></image>
  7. <image wx:else id="{{index}}" class="icon" src="{{item.icon}}"></image>
  8. <view class="check_false_text {{currentTab==index?'check_true_text':''}}" id="{{index}}">{{item.title}}</view>
  9. </view>
  10. </view>
  11. </view>
  12. </view>