index.wxml 891 B

12345678910111213141516
  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':''}}" id="{{active==index?'active'+index:''}}" wx:for="{{list}}" wx:key="index" data-index="{{index}}" bindtap="tabsChenge">
  3. <block wx:if="{{showIcon}}">
  4. <view class="icon" wx:if="{{item.icon}}">
  5. <text class="iconfont {{item.icon}}" />
  6. </view>
  7. <view wx:else class="num line-1">{{item.num}}</view>
  8. </block>
  9. <view class="label line-1 {{item.icon?'':'overstriking'}}">{{language[item.label]||item.label}}</view>
  10. </view>
  11. </scroll-view>
  12. <view class="slot-box" bindtouchstart="myTouchStart" bindtouchmove="myTouchMove">
  13. <slot name='padtop' />
  14. <slot name='{{list[active].label}}' />
  15. <slot />
  16. </view>