index.wxml 740 B

12345678910111213
  1. <view class="tab-bar">
  2. <view class="mask" wx:if="{{mask}}"></view>
  3. <view wx:for="{{listTab}}" wx:key="index" class="tab-bar-item {{selected === index?'bounce':''}}"
  4. data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
  5. <view class="noticeTips" wx:if="{{item.pagePath=='/pages/message/index'&&userInfo.mCount>0}}">
  6. {{userInfo.mCount}}</view>
  7. <image src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></image>
  8. <view style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</view>
  9. </view>
  10. <!-- #if ANDROID -->
  11. <view class="androidMask" wx:if="{{androidMask}}" bind:tap="toAndroidLogin"></view>
  12. <!-- #endif -->
  13. </view>