<!--packageE/questionnaire/history_details/history_details.wxml-->
<!--packageE/questionnaire/questions/questions.wxml-->
<view class="questions">
	<!-- <view class="topTxt" style="padding-top:{{statusBarHeight}}rpx">
		<van-icon name="arrow-left" catchtap="back"></van-icon>
		问卷详情
	</view> -->
	<view class="topTxt" style="padding-top:{{statusBarHeight}}rpx;position: fixed;top: 0;width:100%;background:#ffffff;">
		<van-icon name="arrow-left" catchtap="back"></van-icon>
		问卷详情
	</view>
	<view class="topTxt" style="padding-top:{{statusBarHeight}}rpx;height:40rpx"></view>
	<view class="banner">
		<view class="title">{{title}}</view>
	</view>
	<block wx:for="{{choice}}" wx:for-index='ind' >
		<view class="listBox" wx:if="{{item.type == '1'}}" >
      <view class="lisTxt">*{{ind + 1}}.(单选){{item.choice_title}}</view>
			<block wx:for="{{item.answer.answer}}" wx:for-index='index' wx:for-item="val">
				<view class="conten {{record[ind].answer.answer[index] == val ? 'contenBack' : ''}}">
					<view>{{val}}({{item.answer.fraction[index]}}分)</view>
					<icon class="iconfont icon-record_go" wx:if="{{record[ind].answer.answer[index] == val }}"></icon>
				</view>
			</block>
		</view>
    <view class="listBox" wx:if="{{item.type == '2'}}" >
      <view class="lisTxt">*{{ind + 1}}.(多选){{item.choice_title}}</view>
			<block wx:for="{{item.answer.answer}}" wx:for-index='index' wx:for-item="val">
				<view class="conten {{record[ind].answer.answer[index] == val ? 'contenBack' : ''}}">
					{{val}}({{item.answer.fraction[index]}}分) 
					<icon class="iconfont icon-record_go" wx:if="{{record[ind].answer.answer[index] == val }}"></icon>
				</view>
			</block>
		</view>
	</block>

</view>
<!-- <view class="hint" wx:if="{{hint}}">您还有必填项未选中</view>
<view class="btn">
  <view catchtap="submit">提交</view>
</view> -->
