index.wxml 469 B

1234567
  1. <scroll-view wx:if="{{list.length > 2}}" class="scroll-box" scroll-x scroll-left='{{scrollLeft}}' scroll-with-animation enable-passive enhanced show-scrollbar='{{false}}'>
  2. <view class="box box-class">
  3. <view wx:for="{{list}}" class="item tab-class {{active==index?'active active-class':''}}" id='{{"active"+index}}' wx:key="index" data-item="{{item}}" data-index="{{index}}" bindtap="onClick">
  4. {{language[item[name]]||item[name]}}
  5. </view>
  6. </view>
  7. </scroll-view>