- <scroll-view scroll-x enable-flex class="scroll" scroll-left='{{scrollLeft}}' scroll-with-animation enable-passive>
 
-     <view class="item {{active==index?'active':''}}" id="{{active==index?'active'+index:''}}" wx:for="{{list}}" wx:key="index" data-index="{{index}}" bindtap="tabsChenge">
 
-         <view class="icon" wx:if="{{item.icon}}">
 
-             <text class="iconfont {{item.icon}}" />
 
-         </view>
 
-         <view wx:else class="num line-1">{{item.num}}</view>
 
-         <view class="label line-1">{{language[item.label]||item.label}}</view>
 
-     </view>
 
- </scroll-view>
 
- <view class="slot-box" bindtouchstart="myTouchStart" bindtouchmove="myTouchMove">
 
-     <slot name='padtop' />
 
-     <slot name='{{list[active].label}}' />
 
-     <slot />
 
- </view>
 
 
  |