<import src="../template/Fan.wxml" />

<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
	<image class="practise_dashboard_header" src="../images/practise_dashboard_header.png"></image>
	<view class="panel1 FlexColumn">
		<view class="panel11 FlexRow">
			<view class="panel111">练习模式</view>
			<view class="panel112 FlexRow" bindtap="showHelp" data-id="1">
				<image class="universalpic_light_black_22x30" src="../images/universalpic_light_black_22x30.png" />
			</view>
		</view>

		<view class="panel12 FlexRow" bindtap="showHelp" data-id="3">
			<view class="FlexRow">
				<image class="universalpic_diagram_black_30x28" src="../images/universalpic_diagram_black_30x28.png" />
				<view class="panel121">正在使用的练习模式</view>
			</view>
			<view class="FlexRow">
				<view class="panel122">{{CurrentPlan}}</view>
				<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
			</view>
		</view>

		<view class="panel13 FlexRow" bindtap="goto" data-url="./setting">
			<view class="FlexRow">
				<image class="universalpic_wrench_black_30x30" src="../images/universalpic_wrench_black_30x30.png" />
				<view class="panel121">模式设置</view>
			</view>
			<view class="FlexRow">
				<view class="panel122"></view>
				<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
			</view>
		</view>
	</view>


	<view class="panel11 FlexRow">
		<view class="panel111">任务量</view>
		<view class="panel112">
		</view>
	</view>

	<view class="panelItem0 panelItem FlexRow">
		<view class="left FlexColumn">
			<view class="text2">今天需要练习的题卡数量</view>
			<view class="text3"></view>
		</view>
		<view class="right FlexRow">
			<view class="Number">{{TaskNumber}}</view>
			<view class="text4">张</view>
		</view>
	</view>
	<view class="lineWidthAll FlexRow">
		<view class="lineWidth690"></view>
	</view>
	<view class="panelItem FlexColumn">
		<view class="panelItem FlexRow">
			<view class="text7">数量组成</view>
		</view>
		<view class="panelItem10 panelItem1 FlexRow">
			<view class="panelItem11 FlexRow" wx:if="{{CardType==0 || CardType==2}}">
				<view class="Null1" wx:if="{{CardType<2}}"></view>
				<template class="fan" is="fanTemplate"
					data="{{Angle1,Angle2,BGColor,FanSize,FanScale,Color1,Color2,ShowNumber}}">
				</template>
				<view class="Null2" wx:if="{{CardType<2}}"></view>
				<view class="list FlexColumn">
					<block wx:if="{{CardType==2}}">
						<view class="item FlexRow">
							<view class="text6">日常题卡</view>
						</view>
						<view class="item FlexRow">
							<view class="Number2">{{StudyPlan.CommonNewLength+StudyPlan.CommonOldLength}}</view>
							<view class="text6">张</view>
						</view>
					</block>
					<view class="item2 item FlexRow">
						<view class="block1 block"></view>
						<view class="text6">新题卡</view>
						<view class="Number1">{{StudyPlan.CommonNewLength}}</view>
					</view>
					<view class="item FlexRow">
						<view class="block2 block"></view>
						<view class="text6">旧题卡</view>
						<view class="Number1">{{StudyPlan.CommonOldLength}}</view>
					</view>
				</view>
			</view>
			<view class="panelItem11 FlexRow" wx:if="{{CardType==1 || CardType==2}}">
				<template class="fan" is="fanTemplate2"
					data="{{Angle12,Angle22,BGColor2,FanSize2,FanScale2,Color12,Color22,ShowNumber2}}">
				</template>
				<view class="list FlexColumn">
					<block wx:if="{{CardType==2}}">
						<view class="item FlexRow">
							<view class="text6">紧急题卡</view>
						</view>
						<view class="item FlexRow">
							<view class="Number2">{{StudyPlan.UrgentNewLength+StudyPlan.UrgentOldLength}}</view>
							<view class="text6">张</view>
						</view>
					</block>
					<view class="item2 item FlexRow">
						<view class="block3 block"></view>
						<view class="text6">新题卡</view>
						<view class="Number1">{{StudyPlan.UrgentNewLength}}</view>
					</view>
					<view class="item FlexRow">
						<view class="block4 block"></view>
						<view class="text6">旧题卡</view>
						<view class="Number1">{{StudyPlan.UrgentOldLength}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
	<view class="lineWidthAll FlexRow">
		<view class="lineWidth690"></view>
	</view>
	<block wx:if="{{StudyPlan.ListReview.length>0}}">
		<view class="panelItem FlexColumn">
			<view class="panelItem21 FlexRow">
				<view class="text21">补习题卡</view>
				<view class="right FlexRow">
					<view class="Number2">{{StudyPlan.ListReview.length}}</view>
					<view class="text6">张</view>
				</view>
			</view>
			<view class="text22">上次练习未练完的题卡，包含在今天任务量内</view>

		</view>
		<view class="lineWidthAll FlexRow">
			<view class="lineWidth690"></view>
		</view>
	</block>
	<view class="panelItem FlexRow">
		<view class="panelItem2 FlexColumn">
			<view class="panelItem21 FlexRow">
				<view class="text21">预计回想</view>
				<view class="right FlexRow">
					<view class="Number2">{{StudyPlan.PracticeNumber}}</view>
					<view class="text6">次</view>
				</view>
			</view>
			<view class="text22">新题卡需回想两次</view>
		</view>
		<view class="panelItem2 FlexColumn">
			<view class="panelItem21 FlexRow">
				<view class="text21">预计用时</view>
				<view class="right FlexRow">
					<view class="Number2">{{StudyPlan.PracticeTime}}</view>
					<view class="text6">分钟</view>
				</view>
			</view>
			<view class="text22">根据近期估算参考</view>
		</view>
	</view>

	<view class="panel11 FlexRow">
		<view class="panel111">练习进度</view>
		<view class="panel112">
		</view>
	</view>

	<view class="panel2 FlexRow">
		<view class="panel21 FlexColumn" bindtap="gotoTaskList" data-id="2">
			<view class="panel211">完成任务量的比例</view>
			<view class="Number5">{{Progress}}%</view>
			<view class="progress">
				<view class="progress1" style="width:{{Progress}}%;"></view>
			</view>
			<view class="panel211">练完的题卡数量</view>
			<view class="FlexRow">
				<view class="Number6">{{StudyPlan.AlreadyPracticeNumber}}</view>
				<view class="text10">张</view>
			</view>
			<view class="line4"></view>
			<view class="panel212 FlexRow">
				<view class="panel2121">查看清单</view>
				<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
			</view>
		</view>

		<view class="panel22 panel21 FlexColumn">
			<view class="panel221 panel21 FlexColumn" bindtap="gotoTaskList" data-id="1">
				<view class="panel211">未练完的题卡数量</view>
				<view class="FlexRow">
					<view class="Number6">{{TaskNumber}}</view>
					<view class="text10">张</view>
				</view>
				<view class="line4"></view>
				<view class="panel212 FlexRow">
					<view class="panel2121">查看清单</view>
					<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
				</view>
			</view>

			<view class="panel222 panel21 FlexColumn" bindtap="showHelp" data-id="2">
				<view class="panel212 FlexRow">
					<image src='../images/universalpic_questionmark_blue_40x40.png'
						class="universalpic_questionmark_blue_40x40" />
					<view class="panel2122">特殊情况</view>
					<image src='../images/universalpic_indicator_right_gray.png' class="Arrow" />
				</view>
				<text class="panel2221">如果今天的练习不够认\n真，家长可以怎么做？</text>
			</view>
		</view>
	</view>

	<view class="line3 line"></view>
</view>

<view wx:if="{{IsChangeStudyPLan}}" class="TempContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
	<image class="Avatar" src='../images/universalpic_logo_200x200.png' />
	<text class='RemindText'>启用哪种学习计划？</text>

	<block wx:for="{{BtnArray}}" wx:key="index">
		<view class="RemindLine"></view>
		<view class="RemindButton FlexColumn" catchtap="changePlan" data-id="{{index}}">
			<view class='RemindButton1 FlexRow'>
				<view class="RemindButton10 FlexRow">
					<view wx:if="{{item.Selected==1}}" class='RemindButton0'>当前</view>
					<image wx:if="{{item.Selected==0}}" class="universalpic_setup_green_30x30"
						src='../images/universalpic_setup_green_30x30.png' />
				</view>
				<view class='RemindButton11'>{{item.Name}}</view>
			</view>
			<view class='RemindButton12' wx:if="{{item.Name2}}">{{item.Name2}}</view>
			<view class='RemindButton13'></view>
		</view>
	</block>
	<view class="RemindLine"></view>
	<text class='RemindText3'>切换后您将看到</text>
	<text class='RemindText4'
		space="ensp">重新规划今天的任务量。首页、学习计划的参考数据将被更新。请回到首页，重新开始今天的练习（不管之前有无练习）。系统会保存本次选择，无须重复切换。\n\n日常练习、紧急练习的任务量设置是各自独立的。</text>

	<view class="footer FlexRow" catchtap="close">
		取消
	</view>
</view>

<view wx:if="{{IsShowHelp}}" class="HelpContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
	<view class="HelpPanel1 FlexColumn">
		<view class="HelpPanel11 FlexRow">
			<view class="HelpPanel111 FlexRow" catchtap="closeHelp">
				<image src='../images/universalpic_close_black_24x24.png' class="universalpic_close_black_24x24" />
			</view>
			<view wx:if="{{HelpID==1}}"></view>
			<view wx:if="{{HelpID==2}}" class="HelpPanel112" catchtap="goto" data-url="./setting">前往重置</view>
			<view wx:if="{{HelpID==3}}" class="HelpPanel113 HelpPanel112" catchtap="changePlanOK">更换</view>
		</view>
		<view class="HelpPanel12 FlexColumn">
			<image wx:if="{{HelpID==1}}" src='{{ImagePath}}web/help_board_tips_shouyeshezhi.png'
				class="help_board_tips_shouyeshezhi" />
			<image wx:if="{{HelpID==2}}" src='{{ImagePath}}web/help_board_tips_chongzhi.png'
				class="help_board_tips_chongzhi" />
			<block wx:if="{{HelpID==3}}">
				<view class="panel11 FlexRow">
					<view class="panel111">启用哪种「练习模式」</view>
					<view class="panel112"></view>
				</view>
				<view class="FlexRow">
					<view class="{{BtnArray[0]['CSS'+BtnArray[0].Selected][0]}} HelpBtn FlexColumn" catchtap="changePlan" data-id="0" data-disabled="{{BtnArray[0].Selected}}">
						<image src="../images/{{BtnArray[0]['CSS'+BtnArray[0].Selected][1]}}.png" class="richang_normal_b_60x60" />
						<view>{{BtnArray[0].Name}}</view>
						<view class="HelpBtnDisabled FlexRow" wx:if="{{BtnArray[0].Selected==2}}">
							<image src="../images/universalpic_stop_black_20x20.png" class="universalpic_stop_black_20x20" />
							<view>有题卡才能启用</view>
						</view>
					</view>
					<view class="{{BtnArray[1]['CSS'+BtnArray[1].Selected][0]}} HelpBtn FlexColumn" catchtap="changePlan" data-id="1" data-disabled="{{BtnArray[1].Selected}}">
						<image src="../images/{{BtnArray[1]['CSS'+BtnArray[1].Selected][1]}}.png" class="richang_normal_b_60x60" />
						<view>{{BtnArray[1].Name}}</view>
						<view class="HelpBtnDisabled FlexRow" wx:if="{{BtnArray[1].Selected==2}}">
							<image src="../images/universalpic_stop_black_20x20.png" class="universalpic_stop_black_20x20" />
							<view>有题卡才能启用</view>
						</view>
					</view>
				</view>
				<view class="{{BtnArray[2]['CSS'+BtnArray[2].Selected][0]}} HelpBtn2 HelpBtn FlexColumn" catchtap="changePlan" data-id="2" data-disabled="{{BtnArray[2].Selected}}">
					<view class="HelpBtn21">{{BtnArray[2].Name}}</view>
					<view class="HelpBtn22">{{BtnArray[2].Name2}}</view>
					<view class="HelpBtnDisabled2 HelpBtnDisabled FlexRow" wx:if="{{BtnArray[2].Selected==2}}">
							<image src="../images/universalpic_stop_black_20x20.png" class="universalpic_stop_black_20x20" />
							<view>当日常和紧急都有题卡时才能启用</view>
						</view>
				</view>

				<view class="HelpBtn3{{IsIPad}} FlexRow">
					<image src='../images/universalpic_exclamation_orange_40x40.png' class="universalpic_exclamation_orange_40x40" />
					<view class="HelpBtn30 FlexColumn">
						<text class="HelpBtn31">有题卡的模式才能启用。</text>
						<text class="HelpBtn31">变更练习模式后，系统将会重新规划今天的任务量，您将看到任务量数据被更新，虽然当天已做的练习数据会被保留，但不会纳入新的任务量统计中。您可以继续完成今天的练习或留待日后再做。</text>
						<text class="HelpBtn31">系统自动记录最后一次的变更结果，无须重复更换。</text>
					</view>
				</view>
			</block>
		</view>
	</view>
</view>