<!--顶部-->
<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"  wx:if="{{paystatus==1}}">
    <image src="https://ndnd.duiduiedu.com/uploads/pics/examstart.png"></image>
  </view> 
  <view class="item2">
    <van-count-down class="control-count-down" seconds auto-start="{{ false }}" time="{{ time }}" format="HH:mm" />
  </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>
<!-- 试题头部 -->

<!-- //左右滑动 -->
<view class="container" bindtouchstart="touchStart1" bindtouchmove="touchMove1" bindtouchend="touchEnd1">
<!-- 试题内容 单选 -->
<block wx:if="{{singdouble==1}}">
  <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"  data-id="{{item.id}}">
      <text>{{item.title}} </text>
    </view>
  </view>
</block>

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

<!-- 试题内容 多选 -->
<block wx:if="{{singdouble==2}}">
  <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"  data-id="{{item.id}}">
      <text>{{item.title}} </text>
    </view>
  </view>
</block>

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

<!-- 答案 -->
<view class="examanswer">
    <view class="answerleft">
          <view class="answerleftup">
              正确答案
          </view>
          <view class="answerleftdown">
                {{itemdatacurrent['answer']}}
          </view>
    </view>

    <view class="answerright">
        <text>{{itemdatacurrent['answername']}}</text>
  </view>

</view>
<!-- 答案 -->

<!-- 解析笔记标签 -->
    <view class="analysisnote">
    
       <view class="analysisnoteleft" >
              <view class="leftitem"  wx:for="{{explainlist}}" wx:for-index="indexa" wx:key="indexa">{{item.name}}</view>
              <!-- <view class="leftitem">科目分类</view>
              <view class="leftitem">科目分22222类</view>
              <view class="leftitem">科目分2222类</view> -->
              <!-- <view class="leftitem2">科目分类</view> -->
       </view>

       <view class="analysisnoteright">
       <image src="https://ndnd.duiduiedu.com/uploads/pics/notebz.png"  bindtap="displayview"></image>
      </view>
    </view>
<!-- 解析笔记标签 -->

<!-- 分割线 -->
 <view class="feigexiang">      
 </view>
<!-- 分割线 -->

<!-- 解释线 -->
<view class="explainline">
      <text>解释</text>
</view>
<!-- 解释线 -->

 <!-- 回复留言区域 -->
 <view class="messagecontent" wx:for="{{replylist}}" wx:for-index="index2" wx:key="index2">
    <view class="msseagehead">
      <view class="headleft">
        <image src="{{item.userinfo['avatar']}}"></image>
      </view>
      <view class="vipimage" wx:if="{{item.userinfo['score']>=1}}">
        <image src="https://ndnd.duiduiedu.com/uploads/pics/vip.png"></image>
      </view>
      <view class="headright">
        <view class="headrightup">
          <text>{{item.userinfo['nickname']}}</text>
        </view>
        <view class="headrightdown">
          <text>{{item.times}}</text>
        </view>
      </view>
     
    </view>
    <view class="msseagemiddle">
      <view class="mssagemiddleup">
        <text>{{item.name}} </text>
      </view>
      <view class="mssagemiddledown" wx:if="{{item.imagecount==1}}">
        <image src="{{baseurl+item}}" wx:for="{{item.pics}}" wx:for-index="index" wx:key="index" data-id="{{index2}}" bindtap="preview" data-src="{{baseurl+item}}"></image>
      </view>
      <view class="mssagemiddledown" wx:if="{{item.imagecount==2}}">
        <image style="width: 45%;height: 265rpx;padding-right: 10rpx;" src="{{baseurl+item}}" data-id="{{index2}}" bindtap="preview" data-src="{{baseurl+item}}"
          wx:for="{{item.pics}}" wx:for-index="index" wx:key="index"></image>
      </view>

      <view class="mssagemiddledown" wx:if="{{item.imagecount>=3}}">
        <image style="width: 30%;height: 265rpx;padding-right: 10rpx;" src="{{baseurl+item}} " data-id="{{index2}}" bindtap="preview" data-src="{{baseurl+item}}"
          wx:for="{{item.pics}}" wx:for-index="index"    wx:key="index"></image>
      </view>
    </view>
    <view class="messageend">
      <view class="messageendleft"   id="{{item.id}}">
        <!-- <image src="https://ndnd.duiduiedu.com/uploads/pics/viewcontent.png"></image> -->
      </view>

      <view class="messageendmiddle" id="{{item.userinfo['nickname']}}"  data-xid="{{item.id}}" bindtap="contentclick">
        <image src="https://ndnd.duiduiedu.com/uploads/pics/replaycontent.png"></image><text>{{item.commentcount}}</text>
      </view>

      <view class="messageendright" id="{{item.id}}" bindtap="clickbtn">
        <image src="https://ndnd.duiduiedu.com/uploads/pics/clickbtn.png"></image><text>{{item.wordsclickcount}}</text>
      </view>
    </view>
    <view class="feigexian">

    </view>
  </view>
  <!-- 回复留言区域 -->
  <!-- 留言区域 -->  
  <form bindsubmit="formSubmit" class="{{showview?'header_view_show':'header_view_hide'}}">
  <view class="areaclass" data-detail="detail2">
   <textarea auto-height auto-focus placeholder="我也说两句" name="wordsname"  value="{{wordstextname}}" bindblur="bindTextAreaBlur"></textarea>
  </view>
  <view class="areafooter" data-detail="detail0">
        <view class="areafooterleft">
        <image src="https://ndnd.duiduiedu.com/uploads/pics/picselect.png" bindtap="uploadpic"></image>
        </view>
        <view class="areafooterright">
           <button formType="submit" size="default">发布</button>
        </view>
  </view>  
</form>

</view>

<!-- //左右滑动 -->