<!--index.wxml-->
<view class="container">
  <view class="nav">
    <view>
      <view class="flex-h">
        <text wx:for="{{NavList}}" wx:for-item="item" wx:for-index="idx" wx:key="key" data-index="{{idx}}" bindtap="CutNav" class="flex-item {{idx === ActiveIndex ? 'active' : ''}}">{{item.value}}</text>
      </view>
    </view>
  </view>
  <view class="MainPage">
    <view class="list">
      <view class="flex-h" wx:for="{{List}}" wx:for-item="item" wx:for-index="idx" wx:key="key" data-id="{{item.id}}" bindtap="TapItem">
        <view class="img">
          <image mode="aspectFill" src="{{item.Img}}" class="centerLabel cover"></image>
        </view>
        <view class="flex-item">
          <text>{{item.Name}}</text>
          <text>{{item.Remark}}</text>
        </view>
      </view>
    </view>
  </view>
</view>