<!--packageE/questionnaire/questions/questions.wxml-->
<view class="questions">
	<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>
		{{plugin_name}}
	</view>
	<view class="topTxt" style="padding-top:{{statusBarHeight}}rpx;height:40rpx">
	</view>
	<view class="banner">
		<view class="title">{{title}}</view>
	</view>
	<block wx:for="{{info.data}}" wx:for-index='ind' >
		<view class="listBox" wx:if="{{item.type == '1'}}" >
      <view class="lisTxt"><text style="color:#fa0505;font-size: 32rpx;">{{item.required?'*':''}}</text>{{ind + 1}}.(单选){{item.choice_title}}</view>
			<block wx:for="{{item.answer.answer}}" wx:for-index='index' wx:for-item="val">
				<view class="conten {{datainfo[ind][0].answer[index] == val ? 'contenBack' : '' }}" data-id="{{item.id}}" catchtap="radio"
				 data-ind='{{ind}}' data-answer="{{val}}" data-indx="{{index}}"
				  data-fraction="{{item.answer.fraction[index]}}" >
					<view>{{val}}</view>
					<icon class="iconfont icon-record_go" wx:if="{{datainfo[ind][0].answer[index] == val}}"></icon>
				</view>
			</block>
		</view>
    <view class="listBox" wx:if="{{item.type == '2'}}" >
      <view class="lisTxt"><text style="color:#fa0505;font-size: 32rpx;">{{item.required?'*':''}}</text>{{ind + 1}}.(多选){{item.choice_title}}</view>
			<block wx:for="{{item.answer.answer}}" wx:for-index='index' wx:for-item="val">
			<!--  -->
				<view class="conten {{datainfo[ind][0].answer[index] == val ? 'contenBack' : '' }}" catchtap="multiple" data-answer="{{val}}" data-id="{{item.id}}"
					data-fraction="{{item.answer.fraction[index]}}" data-ind='{{ind}}' data-indx="{{index}}">
					
					{{val}}
					<icon class="iconfont icon-record_go" wx:if="{{datainfo[ind][0].answer[index] == val}}"></icon>
				</view>
			</block>
		</view>
	</block>

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