index.wxml 219 B

123456789
  1. <view class="nav-wrap">
  2. <view
  3. class="nav {{active === item.value ? 'active' : ''}} nav-width"
  4. wx:for="{{nav}}"
  5. wx:key="value"
  6. data-item="{{item}}"
  7. bind:tap="change">{{item.name}}
  8. </view>
  9. </view>