<!--顶部-->
<import src="/wxParse/wxParse.wxml" />
<!--草稿纸-->
<block wx:if="{{showModalStatus}}">
  <view class='topic_cgz drawer_box' animation="{{animationData}}">
    <view class='topic_cgz_tab'>
      <canvas style="width:100%;height:85%" canvas-id="myCanvas" class="myCanvas" disable-scroll="false"
        bindtouchstart="touchStart" bindtouchmove="touchMove"></canvas>
      <view class="toolsclass">

        <view class='fl'>
          <image src='../../img/cgz_03.png' class="btn_ok" bindtap="shows" data-statu="close"></image>
        </view>
        <view class='fl' bindtap='cleardraw'>
          <image src='../../img/cgz_05.png'></image>
        </view>
        <view class='fl' bindtap='colorSelect' data-param="#D81E06">
          <image src='../../img/cgz_07.png'></image>
        </view>
        <view class='fl' bindtap='colorSelect' data-param="#FFFFFF">
          <image src='../../img/cgz_09.png'></image>
        </view>
        <view class='clear'></view>
      </view>

    </view>
  </view>
</block>

<!-- 试题头部 -->
<view class="examing">
  <view class="item1" bindtap="start" wx:if="{{paystatus==1}}">
    <image src="https://ndnd.duiduiedu.com/uploads/pics/examstart.png"></image>
  </view>
  <view class="item1" bindtap="pause" wx:else>
    <image src="https://ndnd.duiduiedu.com/uploads/pics/exampause.png"></image>
  </view>
  <view class="item2" wx:if="{{zstime==0}}">
    <van-count-down class="control-count-down" seconds auto-start="{{ false }}" time="{{ time }}" format="HH:mm:ss"   /> 
  </view>
  <view class="item2" wx:else>  
    <view style="color: white;">{{timecount}}</view>
  </view>
  <view class="item3">
    <text>{{now}}</text><text>/{{all}}</text>
  </view>
  <view class="item4" bindtap="collectionselect" id="{{itemdatacurrent['id']}}" wx:if="{{collection==1}}">
    <image src="https://ndnd.duiduiedu.com/uploads/pics/examingshou.png"></image>
  </view>
  <view class="item4" bindtap="collectionselect" id="{{itemdatacurrent['id']}}" wx:else>
    <image src="https://ndnd.duiduiedu.com/uploads/pics/examingshou2.png"></image>
  </view>
  <view class="item5" bindtap="caogaoclick">
    <image src="https://ndnd.duiduiedu.com/uploads/pics/examingcaogao.png"></image>
  </view>
</view>
<!-- 试题头部 -->

<!-- 试题内容 单选 -->
<block wx:if="{{singdouble==1}}" animation="{{animationData}}">
  <view class="examingcontent{{activeopen?'':'2'}}">
   <!-- <view class="headdouble"> -->
   <view class="headdoubleleft">【{{itemdatacurrent.itemname}}】</view>
   <view class="headdoubleright"><rich-text nodes="{{content}}"></rich-text></view>
    <!-- </view> -->

  </view>
</block>
<block wx:if="{{paiduanactive==3}}">
  <view class="openclass" bindtap="openactive">
    <image src="https://ndnd.duiduiedu.com/uploads/pics/open.png"></image>
  </view>
</block>

<block wx:if="{{singdouble==1}}">
  <view class="examintcontentda" wx:for="{{itemdata}}" wx:for-index="index" wx:for-item="item" wx:key="index">
    <view class="contentleft">
      <image src="https://ndnd.duiduiedu.com/uploads/pics/unsingleselect.png" wx:if="{{item.selectvalue==1}}"></image>
      <image src="https://ndnd.duiduiedu.com/uploads/pics/singleselect.png" wx:else></image>
      <view class="charclass">
        <text>{{item.charmu}}</text>
      </view>
    </view>
    <view class="contentright" bindtap="bindActive" data-id="{{item.id}}">
      <text>{{item.title}} </text>
    </view>
  </view>
</block>

<!-- 试题内容 单选 -->

<!-- 试题内容 多选 -->
<block wx:if="{{singdouble==2}}" animation="{{animationData}}">
  <view class="examingcontent">   
    <!-- <view class="headdouble"> -->
   <view class="headdoubleleft">【{{itemdatacurrent.itemname}}】</view>
   <view class="headdoubleright"><rich-text nodes="{{content}}"></rich-text></view>
    <!-- </view> -->
  </view>
</block>

<block wx:if="{{singdouble==2}}">
  <view class="examintcontentda" wx:for="{{itemdata}}" wx:for-index="index" wx:for-item="item" wx:key="index">
    <view class="contentleft">
      <image src="https://ndnd.duiduiedu.com/uploads/pics/unexamingselect.png" wx:if="{{item.selectvalue==1}}"></image>
      <image src="https://ndnd.duiduiedu.com/uploads/pics/examingselect.png" wx:else></image>
      <view class="charclass">
        <text>{{item.charmu}}</text>
      </view>
    </view>
    <view class="contentright" bindtap="bindList" data-id="{{item.id}}">
      <text>{{item.title}} </text>
    </view>
  </view>
</block>

<!-- 试题内容 多选 -->
<!-- 试题内容 -->
<!-- 试题底部 -->
<view class="examingfooter">
  <view class="footerleft" bindtap="prev">
    <image src="https://ndnd.duiduiedu.com/uploads/pics/examingleft.png"></image>
  </view>
  <!-- <view class="footermiddle" bindtap="subitexam"> -->
    <view class="footermiddle" bindtap="showPopup">
    <image src="https://ndnd.duiduiedu.com/uploads/pics/examingmiddle.png"></image>
  </view>
  <view class="footerright" bindtap="next">
    <image src="https://ndnd.duiduiedu.com/uploads/pics/examingright.png"></image>
  </view>
</view>
<!-- 试题底部 -->

<van-dialog
  use-slot
  title="休息一下再战"
  show="{{ showvide }}"
  confirm-button-text="继续"
  confirm-button-color="black"
  bind:confirm="zsstart"
>
<image style="width:321px;height:400px;" src="https://ndnd.duiduiedu.com/uploads/pics/exambtn.png"/>
</van-dialog>

<!-- 自定义图标 -->
<van-popup
  show="{{ showexampop }}"
  closeable
  close-icon="close"
  position="bottom"
  custom-style="height: 80%"
  bind:close="onCloseexam"
>

<view class="popsubitexamcontent">
  <view class="popexamcontentup">
    <text>{{examlistdata.grouppapername}}</text>
  </view>
  <view class="popexamcontentdown">
    <view class="popdownitem"  bindtap="jumpitem" data-id="{{item.id}}"  wx:for="{{examlist}}" wx:for-index="index" wx:for-item="item" wx:key="index">
      <image src="{{item.pics3}}"  wx:if="{{item.isas==0}}"></image>
      <image src="{{item.pics1}}"   wx:else></image>
      <view class="popcharclass">
        <text>{{index+1}}</text>
      </view>
    </view>
  </view>
  </view>
  <!-- 试卷解析 -->
<view class="popexamanalysis">
   <view class="popalysisleft">
   <image src="https://ndnd.duiduiedu.com/uploads/pics/daitika.png"  id="1" bindtap="viewallexplain"></image>
   </view>
</view>
<!-- 试卷解析 -->
</van-popup>