<view class="nav-wrap">
  <view
    class="nav {{active === item.value ? 'active' : ''}} nav-width"
    wx:for="{{nav}}"
    wx:key="value"
    data-item="{{item}}"
    bind:tap="change">{{item.name}}
  </view>
</view>
