<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
  <view class="panelTop FlexRow">
    <view class="panelTop1 FlexColumn" catchtap="selectSubject" data-type="CHN">
      <view>语文</view>
      <view class="panelTopLine" wx:if="{{Subject=='CHN'}}"></view>
      <view class="panelTopLine0 panelTopLine" wx:if="{{Subject!='CHN'}}"></view>
    </view>
    <view class="panelTop1 FlexColumn" catchtap="selectSubject" data-type="ENG">
      <view>英语</view>
      <view class="panelTopLine" wx:if="{{Subject=='ENG'}}"></view>
      <view class="panelTopLine0 panelTopLine" wx:if="{{Subject!='ENG'}}"></view>
    </view>
  </view>
  <view class="panelLine"></view>
  <view class="panel FlexColumn">
    <scroll-view scroll-x class="panelTab FlexRow" scroll-left="{{ScrollLeft}}">
      <view class="Tab0"></view>
      <view class="Tab{{item.Select}} Tab" wx:for="{{GradeArr}}" wx:key="index" wx:if="{{item.Type==Subject}}"
       catchtap='onSelectGrade' data-value='{{index}}'>
        {{item.Name}}
      </view>
    </scroll-view>
    <scroll-view scroll-x class="panelCard FlexRow">
      <view class="Card0"></view>
      <view class="Card" wx:for="{{GradeArr[TestSelectGrade].List}}" wx:key="index" bindtap="goto"
        data-type="{{item.Type}}" data-bookid="{{item.ID}}"
        data-name1="{{GradeArr[TestSelectGrade].Name}} {{item.Name}} {{item.Name2}}">
        <image class="examine_subject_a001" src="{{item.Image}}"></image>
        <view class="Card1">{{item.NameStr}}</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>
    </scroll-view>
  </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<10}}" 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 style="width:100%;height:150rpx;"></view>

  <view class='panelBottom FlexColumn' catchtap="">
    <view class='panelBottom1 FlexRow'>
      <view class='panelBottom11 FlexColumn'>
        <view class='text5'>检验</view>
      </view>
      <view class='panelBottom11 FlexColumn' catchtap="gotoReLaunch" data-url="../main/default">
        <view>练习</view>
      </view>
      <view class='panelBottom11 FlexColumn' catchtap="goto" data-url="../main/add?type=add&id=0">
        <image class="tabbar_add_red_70x70" src='../images/tabbar_add_red_70x70.png' />
      </view>
      <view class='panelBottom11 FlexColumn' catchtap="gotoReLaunch" data-url="../main/cardmain">
        <view>题卡</view>
      </view>
      <view class='panelBottom11 FlexColumn' catchtap="goto" data-url="../other/userbook">
        <view>手册</view>
      </view>
    </view>

    <view class="iphone10plus" wx:if="{{IsIPhoneX}}"></view>
  </view>

</view>