<div class="homework_score">
	<div class="homework_score_detail">
		<div>
			<p><span>共&nbsp; {{count}}&nbsp; 题，答错&nbsp; {{errorCount}}&nbsp; 题，正确率</span></p>
			{{#if classCorrectRate}}
				<p class="class_correct_rate">全班平均正确率&nbsp; {{classCorrectRate}}%</p>
			{{/if}}
		</div>
		<div style="position:relative;display:inline-block">
			<canvas width="100" height="100" id="correct_rate_canvas"></canvas>
			<div class="home_correct_rate">{{correctRate}}%</div>
		</div>
	</div>
	{{#if starLevel}}
		<div class="homework_star_level"><span>奖励：</span>{{#loop starLevel}}<img src="img/redFlower.png"></img>{{/loop}}</div>
	{{/if}}
</div>
<div class="homework_main">
	<div class="homework_content">
		{{#each questionCollections}}
			<div class="question_collection">
				<div class="question_collection_type">
					<span class= "question_collection_type_name">&nbsp;&nbsp; {{type}}</span>
					<span class="question_collection_count">（共{{questions.length}}题，答错{{errorCount}}题）</span>
				</div>
				{{#each questions}}	
					<div class="question" id="{{data.[0].topic.id}}">
						<div class="question_number" ><span>{{number}}</span></div>
						<div class="question_answer_detail">
							<div class= "question_content">
								<div class="question_stem">
									{{#each data}}
										{{#if topic.topic_stem}}
											<div>{{#if @index}}（{{@index}}）{{/if}}{{get_html_content topic.topic_stem}}</div>
										{{/if}}
										{{#if topindexs}}
											<div>
												{{#isShortAnswerType ../topic.topic_type}}
												{{else}}
													{{#each topindexs}}
														{{#if CdetContent}}
															<div>{{get_alpha_index @index}}.{{get_html_content CdetContent}}</div>
														{{/if}}
													{{/each}}
												{{/isShortAnswerType}}
											</div>
										{{/if}}
									{{/each}}
								</div>
								<div class="question_answer">
									{{#each data}}
										{{#if @index}}
											<div class= "subquestion}" id="{{topic.id}}">
												<span class="subquestion_number">（{{@index}}）</span>
										{{/if}}
		  								{{#if topindexs}}
	  										{{#isShortAnswerType ../topic.topic_type}}
	  											<span class="student_answer ">
	  												{{#each topindexs}}
	  													<span>{{inc @index}}.{{studentAnswer}}</span>
	  												{{/each}}
	  											</span>
	  										{{else}}
	  											<span class="student_answer choosed_{{#if correct}}right{{else}}wrong{{/if}}">你的选择:{{../../studentAnswer}}</span>
	  										{{/isShortAnswerType}}
		  								{{/if}}
			  							{{#if @index}}
				  							</div>
				  						{{/if}}
									{{/each}}
	  							</div>
	  							<div class="question_analysis">
	  								<span style="color:#33b5e5;font-size: 24px">解题思路：</span>{{get_analysis_content data}}
	  							</div>
	  							<div class="question_source"><span>来源：</span><span class="question_source_name">{{data.[0].topic.source}}</span></div>
		  					</div>
							<div class="question_answer_result">
								{{#if data.[0].correct}}
									<img src="img/right.png"></img>
								{{else}}
									{{#if data.[0].partlyCorrect}}
										<span class="answer_partly_correct">部分正确</span>
									{{else}}
										<img src ="img/wrong.png"></img>
									{{/if}}
									<div class="reference_answer">
										参考答案：
					                	{{#each data}}
						                    <p>
						                    	{{#if @index}}
													<span>（{{@index}}）</span>
												{{/if}}
						                        {{#each topindexs}}
						                            {{#isShortAnswerType ../topic.topic_type}}
						                            	{{#if CdetContent}}
						                            		<span>{{inc @index}}.{{get_html_content CdetContent}}</span>
						                            	{{/if}}
						                            {{else}}
						                   				{{#isCorrectAnswer CdetAnswer}}<span>{{get_alpha_index @index}}</span>{{/isCorrectAnswer}}
						                            {{/isShortAnswerType}}
						                        {{/each}}
						                	</p>
					                	{{/each}}
									</div>
								{{/if}}
								{{#if data.[0].classCorrectRate}}
									<p class="class_correct_rate">全班平均正确率&nbsp; {{data.[0].classCorrectRate}}%</p>
								{{/if}}
							</div>
						</div>
					</div>
				{{/each}}
			</div>
		{{/each}}
	</div>
</div>