tarbar.wxml 549 B

12345678910
  1. <view class="menu">
  2. <scroll-view scroll-x="true" class="top-nav" scroll-with-animation="true" scroll-left="{{left}}" >
  3. <block wx:for="{{motto}}" wx:for-item="item" wx:key="index" wx:for-index="itemIdx">
  4. <view bindtap="navItemTap" class="top-btn {{navBtnSelectIdx == itemIdx ? 'top-hoverd-btn' : ''}}" data-index="{{itemIdx}}">
  5. {{item}}
  6. <view class="striping {{navBtnSelectIdx == itemIdx ? 'top-hoverd-striping' : ''}}"></view>
  7. </view>
  8. </block>
  9. </scroll-view>
  10. </view>