<!--顶部-->
<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='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>
</block>

<block wx:if="{{Answer_card == true}}">

	<view class='Answer_card'>
		<view class='card_top'>
			<view class='card_redius'>
				<view>
					<text class='little_text'>正确率</text>
					<text class='big_number'>{{score_num}}%</text>
				</view>
			</view>
		</view>
		<view class='card_down'>
			<block wx:for="{{array}}" wx:key="unique" wx:for-item="$vo">
				<view class='title'>
					<text>{{$vo.class}}</text>
				</view>
				<block wx:for="{{$vo.problem}}" wx:key="unique" wx:for-item="$vo2">
					<view class='circle' bindtap='Continue' data-index="{{$vo2.index}}">
						<block wx:if="{{$vo2.problem_true == my_answer[$vo2.index]}}">
							<view>
								<image src='../../images/answer_03.png'></image>
								<text style='color:#6493FF;'>{{$vo2.index+1}}</text>
							</view>
						</block>
						<block>
							<view>
								<image src='../../images/answer_04.png'></image>
								<text style='color:#F13131;'>{{$vo2.index+1}}</text>
							</view>
						</block>
					</view>
				</block>
			</block>
		</view>
		<view class='card_bottom'>
			<view class='button' bindtap='all_analysis'>
				<image class='button_bj' src='../../images/14405.jpg'></image>
				<image class='button_image' src='../../images/icon_13.png'></image>
				<text>查看全部解析</text>
			</view>
			<view class='button' bindtap='false_analysis'>
				<image class='button_bj' src='../../images/14405.jpg'></image>
				<image class='button_image' src='../../images/icon_13.png'></image>
				<text>查看错题解析</text>
			</view>
		</view>
	</view>
</block>



<swiper class="tab-content" style="height:{{height}}px;" circular="true" animation="{{animationData}}">
		<swiper-item>
			<scroll-view scroll-y="true" class="scoll-h" scroll-with-animation="true" scroll-into-view="{{toView}}" id="a{{index}}">
				<view class="the_big_box" style="overflow-y:{{scroll}};">
					<view class="tab-content-top">
						

						
						<block wx:if="{{info.stem_id != null}}">
							<view class="stem" style="overflow-y:{{scroll}}" animation="{{animationData}}" >
								<view>
									<template is="wxParse" data="{{wxParseData:stem_text.nodes}}"/>
								</view>
							</view>
							<block wx:if="{{drag_line == false}}">
								<view class="drag" bindtap='drag_line'>
									<image class='drag_line' src='../../images/zhankai.png'></image>
								</view>
							</block>
							<block wx:else>
								<view class="drag" bindtap='drag_line'>
									<image class='drag_line' src='../../images/shouqi.png'></image>
								</view>
							</block>
						</block>
						<view class="problem">
							<template is="wxParse" data="{{wxParseData:problem_text.nodes}}"/>
						</view>
					</view>
					<!--选项列表-->
					<view class="option_box">
						<block wx:for="{{info.problem_option}}" wx:for-item="$vo2" wx:key="unique" wx:for-index="index2">
							<view class="option">
								<view>
									<block wx:if="{{$vo2.key == info.problem_true}}">
										<image src="../../images/on_03.png"></image>
										<text style="color:#6493FF;">{{$vo2.key}}</text>
									</block>
									<block wx:elif="{{$vo2.key == my_answer[index]}}">
										<image src="../../images/on_04.png"></image>
										<text style="color:#FF0000;">{{$vo2.key}}</text>
									</block>
									<block wx:else>
										<image src="../../images/on_06.png"></image>
										<text>{{$vo2.key}}</text>
									</block>
								</view>
								<text>{{$vo2.value}}</text>
								<cover-view style="clear:both;"></cover-view>
							</view>
						</block>
					</view>
					<!--选项列表-->



					<!--全站正确率-->
					<view class='correctrate' style='border-top:15rpx solid #f5f5f5;'>
						<view class='left'>
							<text class='left_top_text' >全站正确率</text>
							<text class='left_down_text'>{{info.true_count_record}}%</text>
						</view>
						<view class='left'>
							<text class='left_top_text' >易错选项</text>
							<text class='left_down_text' style='color:#000'>{{info.false_options}}</text>
						</view>
						<view style='clear:both;'></view>
					</view>
					<!--全站正确率-->



					<!--标签区域-->
					<view class='tag' style='border-top:15rpx solid #f5f5f5;'>
						<view>
							<block wx:for="{{info.class}}" wx:for-item="$class" wx:key="unique">
								<text class='class'>{{$class}}</text>
							</block>
						</view>
						<view>
							<block wx:for="{{info.problem_tag}}" wx:for-item="$label" wx:key="unique">
								<text class='label'>{{$label}}</text>
							</block>
						</view>
					</view>
					<!--标签区域结束-->
					<!--解析区域 -->
					<view class='analysis'>
							<view class='analysis_title'>
								<view class='analysis_title_left'>
									解析
								</view>
								<view class='analysis_title_right' bindtap='I_want_to_parse'>
									<view style='width:100%;height:100%;position:relative;'>
										<image src="../../images/icon_write.png"></image>
										<text>我来解析</text>
									</view>
								</view>
								<view style='clear:both;'></view>
							</view>
							<block wx:for="{{info.problem_analysis}}" wx:key="unique" wx:for-item="$p" wx:for-index="index2">
								<block wx:if="{{$p.analysis_state == '1'}}">
									<view class='list blue'>
										<view class='list_top'>
											<view class='head'>
												<image src="{{$p.wechat_avatarurl}}"></image>
											</view>
											<view class='nickname'>
												{{$p.wechat_nickname}}
											</view>
											<view class='date'>
												{{$p.analysis_time}}
											</view>
											<block wx:if="{{$p.analysis_state == '1'}}">
												<view class='ding'>
													<image src="../../images/zan_03.png"></image>
												</view>
											</block>
											<block wx:if="{{$p.analysis_zan_state == 1}}">
												<view class='zan' bindtap='off_zan' data-a="{{index}}" data-b="{{index2}}" data-id="{{$p.analysis_id}}">
													<image src="../../images/zan_09.png" ></image>
												</view>
											</block>
											<block wx:else>
												<view class='zan' bindtap='on_zan' data-a="{{index}}" data-b="{{index2}}" data-id="{{$p.analysis_id}}">
													<image src="../../images/zan_05.png"></image>
												</view>
											</block>
											<text class='zan_count'>{{$p.analysis_zan}}</text>
										</view>
										<view class='list_down'>
											<view>
												{{$p.analysis_text}}
											</view>
											<block wx:for="{{$p.analysis_img}}" wx:key="unique" wx:for-item="img">
												<image src='{{img}}'></image>
											</block>
											<view style='clear:both'></view>
										</view>
									</view>
								</block>
								<block wx:else>
									<view class='list '>
										<view class='list_top'>
											<view class='head'>
												<image src="{{$p.wechat_avatarurl}}"></image>
											</view>
											<view class='nickname'>
												{{$p.wechat_nickname}}
											</view>
											<view class='date'>
												{{$p.analysis_time}}
											</view>
											<block wx:if="{{$p.analysis_state == '1'}}">
												<view class='ding'>
													<image src="../../images/zan_03.png"></image>
												</view>
											</block>
											<block wx:if="{{$p.analysis_zan_state == 1}}">
												<view class='zan' bindtap='off_zan' data-a="{{index}}" data-b="{{index2}}" data-id="{{$p.analysis_id}}">
													<image src="../../images/zan_09.png" ></image>
												</view>
											</block>
											<block wx:else>
												<view class='zan' bindtap='on_zan' data-a="{{index}}" data-b="{{index2}}" data-id="{{$p.analysis_id}}">
													<image src="../../images/zan_05.png"></image>
												</view>
											</block>
											<text class='zan_count'>{{$p.analysis_zan}}</text>
										</view>
										<view class='list_down'>
											<view>
												{{$p.analysis_text}}
											</view>
											<block wx:for="{{$p.analysis_img}}" wx:key="unique" wx:for-item="img">
												<image src='{{img}}' data-src='{{img}}' data-urls="{{$p.analysis_img}}" bindtap="Picture_preview"></image>
											</block>
											<view style='clear:both'></view>
										</view>
									</view>
								</block>
							</block>
						</view>
						<!--解析区域结束-->
					<view style="height:120rpx;"></view>
				</view>
			</scroll-view>
		</swiper-item>

</swiper>






<block wx:if="{{jiexi == true}}">
	<view style='position:fixed;left:0;top:0;background:#fff;width:100%;height:100%;z-index:999;'>
		<view class='analysis'>
			<view class='my_analysis'>
				<textarea fixed="false" auto-focus placeholder='写出你想说的' maxlength="-1" placeholder-style="font-size:34rpx;" bindinput='dazi' data-name="analysis_text" value='{{field.analysis_text}}'></textarea>
				<view class='image_box'>
					<block wx:for="{{img}}" wx:key="unique" wx:for-item="$img">
						<image class='add' src="{{$img}}" bindtap='upload'></image>
					</block>
					<image class='add' src="../../images/add.png" bindtap='upload'></image>
					<text>
						上传图片
						(最多三张)
					</text>
				</view>
				<view class='button_view_two'>
					<button bindtap='submit'>确认提交</button>
					<button bindtap='reset'>返回看题</button>
				</view>
			</view>
		</view>
	</view>
</block>





