index.wxml 1.0 KB

1234567891011121314151617
  1. <scroll-view scroll-x enable-flex class="scroll" style="height: {{showIcon?'120':'90'}}rpx;" scroll-left='{{scrollLeft}}' scroll-with-animation enable-passive>
  2. <view class="item {{active==index?'active':''}}" style="border-color:{{item.color || '#3874F6'}};" id="{{active==index?'active'+index:''}}" wx:for="{{list}}" wx:key="index" data-index="{{index}}" bindtap="tabsChenge">
  3. <block wx:if="{{showIcon}}">
  4. {{item.color}}
  5. <view class="icon" wx:if="{{item.icon}}">
  6. <text class="iconfont {{item.icon}}" />
  7. </view>
  8. <view wx:else class="num line-1">{{item.num}}</view>
  9. </block>
  10. <view class="label line-1 {{item.icon?'':'overstriking'}}" style="color: {{active == index ? item.color || '#999' : '#999'}};">{{language[item.label]||item.label}}</view>
  11. </view>
  12. </scroll-view>
  13. <view class="slot-box" bindtouchstart="myTouchStart" bindtouchmove="myTouchMove">
  14. <slot name='padtop' />
  15. <slot name='{{list[active].label}}' />
  16. <slot />
  17. </view>