<!--index.wxml-->
<view class="MainPage">
  <view class="mainList">
    <view wx:for="{{List}}" wx:for-index="idx" wx:for-item="item" wx:key="key" hidden="{{idx !== ActiveIndex}}">
      <text class="question">{{item.Question}}</text>
      <view class="list">
        <text wx:for="{{item.AnswerList}}" wx:for-index="subIdx" wx:for-item="subItem" wx:key="subKey" data-index="{{subIdx}}" bindtap="CheckItem" class="{{subItem.IsCheck ? 'active' : ''}}">{{subItem.Value}}</text>
      </view>
    </view>
  </view>
  <view class="prev" hidden="{{ActiveIndex === 0}}"><text bindtap="PrevQuestion">上一题</text></view>
  <view class="btn" hidden="{{!CanSubmit}}"><text bindtap="CheckMyPermission">查看购房资格</text></view>
</view>