<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
  <view class="panelTop FlexRow" bindtap="showSelectGrade">
    <view class="panelTop1">{{GradeArr[TestSelectGrade].Name2}}</view>
    <view class="panelTop2 FlexRow">
      <image class="universalpic_menu_blue_26x26" src="../images/universalpic_menu_blue_26x26.png"></image>
      <view>更改科目</view>
    </view>
  </view>
  <view class="panelLine"></view>
  <scroll-view scroll-x class="panelCard FlexRow">
    <view class="Card" wx:for="{{GradeArr[TestSelectGrade].List}}" wx:key="index" bindtap="goto" data-url="./list?id={{item.ID}}&name1={{GradeArr[TestSelectGrade].Name}} {{item.Name}} {{item.Name2}}">
      <image class="examine_subject_a001" src="{{item.Image}}"></image>
      <view class="Card1">{{item.Name}}</view>
      <view class="Card2">{{item.Name2}}</view>
      <view class="Card3">检验过</view>
      <view class="Card4 FlexRow">
        <view class="Progress FlexRow">
          <view class="Progress1" style="width:{{item.Finished}}%;"></view>
        </view>
        <view class="Number">{{item.Finished}}%</view>
      </view>
    </view>
    <view class="Card0"></view>
  </scroll-view>
  <view class="panelList FlexColumn">
    <view class="panelListTitle FlexRow">
      <view>报告汇总</view>
    </view>
    <block wx:if="{{TestReport.length==0}}">
      <image class="examine_clipboard_80x80" src="../images/examine_clipboard_80x80.png"></image>
      <text class="panelListContent">您还没有做过知识检验，选择科目开始检验吧，\n检验后的报告将显示在这里。\n</text>
    </block>

    <block wx:if="{{TestReport.length>0 && index<20}}" wx:for="{{TestReport}}" wx:key="index">

      <view class="Item FlexRow" bindtap="gotoTestReportInfo" data-id="{{item.ID}}">
        <view class="Item1 FlexColumn">
          <view class="ItemTitle FlexRow">
            <view>{{item.Name[1]}}</view>
            <view class="ItemTitle11" wx:if="{{item.TestType=='read'}}">会念</view>
            <view class="ItemTitle11" wx:if="{{item.TestType=='write'}}">会写</view>
          </view>
          <view class="ItemTitle2">{{item.Name[0]}}</view>
        </view>
        <view class="Item2 FlexColumn">
          <view class="ItemDate">{{item.CreateTime}}</view>
          <view class="ItemNumber FlexRow">
            <image wx:if="{{item.TestType=='read' && item.IsFinished==1}}" class="examine_willread_gray_22x22" src="../images/examine_willread_green_22x22.png"></image>
            <image wx:if="{{item.TestType=='read' && item.IsFinished==0}}" class="examine_willread_gray_22x22" src="../images/examine_willread_gray_22x22.png"></image>
            <image wx:if="{{item.TestType=='write' && item.IsFinished==1}}" class="examine_willwrite_gray_22x22" src="../images/examine_willwrite_green_22x22.png"></image>
            <image wx:if="{{item.TestType=='write' && item.IsFinished==0}}" class="examine_willwrite_gray_22x22" src="../images/examine_willwrite_gray_22x22.png"></image>
            <image class="universalpic_checked_gray_14x12" src="../images/universalpic_checked_gray_14x12.png"></image>
            <view class="Number2">{{item.TestRightStr.length}}</view>
            <image class="universalpic_wrong_gray_12x12" src="../images/universalpic_wrong_gray_12x12.png"></image>
            <view class="Number3">{{item.TestWrongStr.length}}</view>
          </view>
        </view>
      </view>

      <view class="lineWidthAll FlexRow">
        <view class="lineWidth720"></view>
      </view>
    </block>

  </view>

</view>

<!-- 更多功能 -->
<view wx:if="{{IsSelectGrade}}" class="numberContainer FlexColumn" style='height:{{Containnerheight}}rpx;'>
  <view class="numberContainerFooter1 FlexColumn">
    <view class='lineFooter'></view>
    <view class='numberContainerFooter101 FlexRow'>
      <view>
        <image class="universalpic_people_black_30x30" src='../images/universalpic_people_black_30x30.png' />
      </view>
      <view class='numberContainerFooter11 FlexColumn'>
        <view class='numberContainerFooter111'>选择年级</view>
        <view class='numberContainerFooter113'>目前仅小学阶段如下科目开放试用</view>
        <view class='numberContainerFooter112 FlexRow'>
          <view class='numberContainerFooter1121{{item.Select}}' wx:for="{{GradeArr}}" wx:key="index" catchtap='onSelectGrade' data-value='{{index}}'>{{item.Name2}}</view>
        </view>
        <view style="width:100%;height:40rpx;"></view>
      </view>
    </view>
  </view>
  
  <view class='lineFooter'></view>
  <view class="numberContaineFooter FlexRow" catchtap='closeSelectGrade'>
    <view>关闭</view>
  </view>
</view>