<view class="home">
	<view wx:for="{{questionList}}">
		<view class='fwb' wx:if="{{ item.QuestType == 3 &&  item.QuestStem.length <5}}">
			<view class="red-image">
				<image src="/images/quan.png" style="width:20rpx;height:20rpx"> </image>
			</view>
			<view class="xingbie">{{item.QuestStem}}</view>
			<view class='weui-input'>
				<input name="{{item.name}}" value="{{item.QuestAnswer}}" data-index='{{index}}' data-questTypes='{{item.QuestType}}' data-idx='{{item.Id}}' bindinput='bindTextAreaBlur' placeholder="请输入" />
				<view class="{{nameIsTrue?'error':'noerror'}}">请输入姓名</view>
			</view>
		</view>
		<view class='fwt' wx:if="{{ item.QuestType == 3  &&  item.QuestStem.length >= 5 }}">
			<view class="red-image">
				<image src="/images/quan.png" style="width:20rpx;height:20rpx"> </image>
			</view>
			<view class="flex-flex">
				<view class=" xingbie moreTitle">{{item.QuestStem}}</view>
				<textarea value="{{item.QuestAnswer}}" name="{{item.name}}" data-index='{{index}}' data-questTypes='{{item.QuestType}}' data-idx='{{item.Id}}' bindinput='bindTextAreaBlur' placeholder="请输入" maxlength='500' />
				</view>
			</view>
		<view class='fwb' wx:if="{{ item.QuestType == 0}}">
			<view class="red-image">
				<image src="/images/quan.png" style="width:20rpx;height:20rpx;  position: relative; top: 8rpx; "> </image>
				<view class="xingbie tebie">{{item.QuestStem}}</view>
			</view>
			<view class='weui-input' style=" background: white">
				<radio-group name="{{item.name}}" data-index='{{index}}' data-idx='{{item.Id}}' data-questTypes='{{item.QuestType}}' bindchange="radioChange">
					<label class="checkbox my-choosebox {{ item.checked?'checkboxbox':''}}" wx:for-index="idx" wx:for="{{item.QuestChoice}}">
						<radio value="{{ item.value }}" />{{item.name}}
					</label>
				</radio-group>
			</view>
		</view>
		<view class='fwb' wx:if="{{ item.QuestType == 1}}">
		<view style="display:flex">			<view class="red-image">
				<image src="/images/quan.png" style="width:20rpx;height:20rpx"> </image>
			</view>
			<view class="xingbie">{{item.QuestStem}}</view></view>

			<view class='weui-input' style=" background: white">
				<checkbox-group name="{{item.name}}" data-index='{{index}}' data-idx='{{item.Id}}' data-questTypes='{{item.QuestType}}' bindchange="checkboxChange">
					<label class="checkbox my-choosebox {{ item.checked?'checkboxbox':''}}" wx:for-index="idx" wx:for="{{item.QuestChoice}}">
						<checkbox value="{{ item.value }}" />{{item.name}}
					</label>
				</checkbox-group>
			</view>
		</view>
		<view class='fwb' wx:if="{{ item.QuestType == 2}}">
			<view class="red-image">
				<image src="/images/quan.png" style="width:20rpx;height:20rpx"> </image>
			</view>
			<view class="xingbie">{{item.QuestStem}}</view>
			<view class='weui-input' style=" background: white">
				<radio-group name="{{item.name}}" data-index='{{index}}' data-idx='{{item.Id}}' data-questTypes='{{item.QuestType}}' bindchange="radioChange">
					<label class="checkbox my-choosebox {{ item.checked?'checkboxbox':''}}" wx:for-index="idx" wx:for="{{item.QuestChoice}}">
						<radio value="{{ item.value }}" />{{item.name}}
					</label>
				</radio-group>
			</view>
		</view>
		<view class='fwb' wx:if="{{ item.QuestType == 6}}"> 
				<view class="red-image">
					<image src="/images/quan.png" style="width:20rpx;height:20rpx;"> </image>
				</view>
				<view class="xingbie">{{item.QuestStem}}</view>
			<view class='weui-input' style="font-size: 26rpx;  line-height: 56rpx;"  data-index = '{{index}}' data-names='{{item.name}}'  catchtap="share1" name="{{item.name}}">
			{{questionList[index].QuestAnswer}}<view wx:if='{{!questionList[index].QuestAnswer}}' style="color:#808080;display: inline-block;height:60rpx;line-height:60rpx;font-size:25rpx" >请选择</view>
				</view>
				<van-popup  show="{{ postshow[index] }}" position="bottom" custom-style="height: 50%;">
					<van-datetime-picker  data-index='{{index}}' data-questTypes='{{item.QuestType}}' data-idx = '{{item.Id}}'  bind:confirm="onConfirm" bind:cancel='onClose'  type="date" value="{{ currentDate }}" bind:input="onInput" min-date="{{ minDate }}" formatter="{{ formatter }}" />
				</van-popup>
			</view>
		</view>
		<view style="margin-top: 100rpx;margin-bottom:100rpx">
			<van-button   round bindtap="submitForm">提交信息</van-button>
		</view>
</view>