<view class="container">
	<view class="writeOldmanName" wx:if="{{showBj}}">
		<view class="OldmanName_box">
			<view class="oldmanname">请输入老人姓名</view>
			<input auto-focus style="margin-left:50rpx;margin-top:30rpx;border:1px solid #279bff" placeholder="请填写老人姓名" />
			<view class="btn_box">
				<view class="sure" bindtap="sure">确定</view>
				<view class="esc">取消</view>
			</view>
		</view>
	</view>
	<view class="left">
		<view class="block1 {{currentIndex!=0?'clickblock1':''}}" bindtap="turn" data-index="0">
			<image src="{{currentIndex==0?src1:src2}}" class="img"></image>
			<text class="title {{currentIndex!=0?'title1':''}}">老年人信息</text>
			<image src="../../images/mz/unfinish.png" class="isfinish_icon"></image>
		</view>
		<view class="block2 {{currentIndex!=1?'':'clickblock2'}}" bindtap="turn" data-index="1">
			<image src="{{currentIndex==1?src3:src4}}" class="img"></image>
			<text class="{{currentIndex==1?'title':'title1'}}">子女信息</text>
			<image src="../../images/mz/unfinish.png" class="isfinish_icon"></image>
		</view>
		<view class="block2 {{currentIndex!=2?'':'clickblock2'}}" bindtap="turn" data-index="2">
			<image src="{{currentIndex==2?src5:src6}}" class="img img1"></image>
			<text class="title2 {{currentIndex==2?'title4':''}}">其他赡养</text>
			<text class="title3 {{currentIndex==2?'title4':''}}">义务人信息</text>
			<image src="../../images/mz/unfinish.png" class="isfinish_icon"></image>
		</view>
		<view class="block2 {{currentIndex!=3?'':'clickblock2'}}" bindtap="turn" data-index="3">
			<image src="{{currentIndex==3?src7:src8}}" class="img img1"></image>
			<text class="title2 {{currentIndex==3?'title4':''}}">巡访</text>
			<text class="title3 {{currentIndex==3?'title4':''}}">联系人信息</text>
			<image src="../../images/mz/unfinish.png" class="isfinish_icon"></image>
		</view>
	</view>
	<!-- 右侧部分 -->
	<!-- 第一个表单 -->
	<view class="right">
		<view class="name_box">
			<view class="singlename" wx:for="{{nameArr}}" wx:key="{{item.name}}">
				<view class="singlename">
					<view style="line-height:50rpx">{{item.name}}</view>
					<van-icon bindtap="deleteName" data-index="{{index}}" name="close" style="margin-left:25rpx;" />
				</view>
			</view>
			<view class="addname_box">
				<van-icon name="add-o" color="#2087f7" size="40rpx"/>
			</view>
		</view>

		<view class="form_box">
			<view wx:if="{{currentIndex==0}}">
				<view class="scan">
					<van-icon name="photograph" color="#2087f7" size="30rpx" style="margin-left:20rpx" />
					<!-- <image src="../../images/mz/upload.png" style="width:40rpx;height:40rpx;margin-top:5rpx;margin-left:20rpx"></image>-->
					<text>可拍身份证照片上传基本信息</text>
				</view>
				<view class="block"><text class="red">*</text>姓名<input bindinput="tab1Change1" placeholder="请填写老人姓名" name="name" /></view>
				<view wx:if="{{oldName}}" class="required">老人姓名不能为空哦！</view>
				<view class="block">
					<view class="name"><text class="red">*</text>性别</view>
					<radio-group bindchange="tab1Change2">
						<label wx:for="{{oldSex}}" wx:key="{{item}}">
							<radio value="{{item}}" color="#fff" />{{item}}
						</label>
					</radio-group>
				</view>
				<view class="name"><text class="red">*</text>民族</view>
				<picker bindchange="tab1Change3" value="{{mzArr[mzIndex]}}" range="{{mzArr}}">
					<view class="picker">
						{{mzArr[mzIndex]}}
					</view>
				</picker>
				<view class="block"><text class="red">*</text>身份证号<input bindinput="tab1Change4" placeholder="请填写老人身份证号" name="name" /></view>
				<view wx:if="{{oldCard}}" class="required">老人身份证号不能为空哦！</view>
				<view class="block"><text class="red">*</text>联系电话<input bindinput="tab1Change5" placeholder="请填写联系电话" name="name" /></view>
				<view wx:if="{{oldPhone}}" class="required">老人联系电话不能为空哦！</view>
				<view class="block"><text class="red">*</text>户籍地址
					<view class="otherinput">点击选择户籍地址</view>
					<input bindinput="tab1Change6" placeholder="请填写补充户籍地址" name="name" />
				</view>
				<checkbox value="cb" color="#fff" style="margin-top:20rpx" />现居地址与户籍地址一致
				<view class="block"><text class="red">*</text>现居地址
					<view class="otherinput">点击选择现居地址</view>
					<input bindinput="tab1Change7" placeholder="请填写补充现居地址" name="name" />
				</view>
				<view class="block">
					<view class="name"><text class="red">*</text>婚姻及配偶情况</view>
					<radio-group bindchange="tab1Change8">
						<label wx:for="{{oldMarry}}" wx:key="{{item}}">
							<radio value="{{item}}" color="#fff" />{{item}}
						</label>
					</radio-group>
				</view>
				<view class="block">
					<view class="name"><text class="red">*</text>健康状况</view>
					<checkbox-group bindchange="tab1Change9">
						<label wx:for="{{healthAyy}}" wx:key="{{item.name}}">
							<checkbox value="{{item.name}}" color="#fff" disabled="{{item.disabled}}" checked="{{item.checked}}" />{{item.name}}
						</label>
					</checkbox-group>
				</view>
				<view wx:if="{{oldHealth1}}" class="required">老人健康状况不能为空哦！</view>
				<view class="block" wx:if="{{oldHealth2}}">
					<view class="name"><text class="red">*</text>残疾类别</view>
					<checkbox-group bindchange="tab1Change10">
						<label wx:for="{{disabilityAyy}}" wx:key="{{item}}">
							<checkbox value="{{item}}" color="#fff" />{{item}}
						</label>
					</checkbox-group>
				</view>
				<view wx:if="{{oldDisableType}}" class="required">老人残疾类别不能为空哦！</view>
				<view wx:if="{{oldHealth2}}">
					<view class="name"><text class="red">*</text>残疾人等级</view>
					<picker bindchange="tab2Change11" value="{{disableLeval[levalIndex]}}" range="{{disableLeval}}">
						<view class="picker">
							{{disableLeval[levalIndex]}}
						</view>
					</picker>
				</view>
				<view class="block" wx:if="{{isSick}}">
					<view class="name"><text class="red">*</text>重特大疾病类别</view>
					<checkbox-group bindchange="tab1Change10_1">
						<label wx:for="{{sickType}}" wx:key="{{item}}">
							<checkbox value="{{item}}" color="#fff" />{{item}}
						</label>
					</checkbox-group>
				</view>
				<view wx:if="{{issickTypeNull}}" class="required">重特大疾病类别类别不能为空哦！</view>
				<view class="name"><text class="red">*</text>老年人能力情况</view>
				<picker bindchange="tab2Change12" value="{{ableStatus[ableIndex]}}" range="{{ableStatus}}">
					<view class="picker">
						{{ableStatus[ableIndex]}}
					</view>
				</picker>
				<view class="name"><text class="red">*</text>生活经济情况</view>
				<picker bindchange="tab2Change13" value="{{moneyStatus[moneyIndex]}}" range="{{moneyStatus}}">
					<view class="picker">
						{{moneyStatus[moneyIndex]}}
					</view>
				</picker>
				<view class="block">
					<view class="name"><text class="red">*</text>收入来源</view>
					<checkbox-group bindchange="tab1Change14">
						<label wx:for="{{moneyFromAyy}}" wx:key="{{item}}">
							<checkbox value="{{item}}" color="#fff" />{{item}}
						</label>
					</checkbox-group>
				</view>
				<view wx:if="{{moneyFromOther}}" class="required">收入来源不能为空哦！</view>
				<input wx:if="{{moneyOtherQt}}" placeholder="请填写其它收入来源" bindinput="tab1Change14_1" name="name" class="otherinput" />
				<view wx:if="{{moneyOtherQtnull}}" class="required">其它收入来源不能为空哦！</view>
				<view class="name"><text class="red">*</text>本人上年度可支配收入</view>
				<picker bindchange="tab2Change15" value="{{payMoney[payIndex]}}" range="{{payMoney}}">
					<view class="picker">
						{{payMoney[payIndex]}}
					</view>
				</picker>
				<view class="block">
					<view class="name"><text class="red">*</text>家庭救助帮扶情况</view>
					<checkbox-group bindchange="tab1Change16">
						<label wx:for="{{familyHelpArr}}" wx:key="{{item}}">
							<checkbox value="{{item}}" color="#fff" />{{item}}
						</label>
					</checkbox-group>
				</view>
				<view wx:if="{{familyHelp}}" class="required">家庭救助帮扶情况不能为空哦！</view>
				<input wx:if="{{familyHelpQt}}" placeholder="请填写其它救助情况" bindinput="tab1Change16_1" name="name" class="otherinput" />
				<view wx:if="{{otherhelpQtnull}}" class="required">其它救助情况不能为空哦！</view>
				<view class="block">
					<view class="name"><text class="red">*</text>是否为失独家庭</view>
					<radio-group bindchange="tab1Change17">
						<label wx:for="{{loneArr}}" wx:key="{{item}}">
							<radio value="{{item}}" color="#fff" />{{item}}
						</label>
					</radio-group>
				</view>
				<view class="block">
					<view class="name"><text class="red">*</text>陪伴居住情况</view>
					<checkbox-group bindchange="tab1Change18">
						<label wx:for="{{liveStatus}}" wx:key="{{item.name}}">
							<checkbox value="{{item.name}}" disabled="{{item.disable}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
						</label>
					</checkbox-group>
				</view>
				<view wx:if="{{isliveNull}}" class="required">陪伴居住情况不能为空哦！</view>
				<input wx:if="{{isliveQt}}" placeholder="请填写其他陪伴居住情况" bindinput="tab1Change18_1" name="name" class="otherinput" />
				<view wx:if="{{isliveQtNull}}" class="required">其他陪伴居住情况不能为空哦！</view>
				<view class="block">
					<view class="name"><text class="red">*</text>日常生活照料人</view>
					<checkbox-group bindchange="tab1Change19">
						<label wx:for="{{oftenMan}}" wx:key="{{item.name}}">
							<checkbox value="{{item.name}}" disabled="{{item.disabled}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
						</label>
					</checkbox-group>
				</view>
				<view wx:if="{{isoftenManNull}}" class="required">日常生活照料人不能为空哦！</view>
				<input wx:if="{{isoftenManQt}}" bindinput="tab1Change20" placeholder="请填写人员关系" name="name" class="otherinput" />
				<view wx:if="{{isoftenReaNull}}" class="required">人员关系不能为空哦！</view>
				<view wx:if="{{ofenmanDetail}}">
					<view class="block"><text class="red">*</text>主要照料人姓名<input bindinput="tab1Change21" placeholder="请填写主要照料人姓名" name="name" /></view>
					<view class="required" wx:if="{{lookAfterName}}">主要照料人姓名不能为空哦！</view>
					<view class="block">
						<view class="name"><text class="red">*</text>主要照料人性别</view>
						<radio-group bindchange="tab1Change22">
							<label wx:for="{{lookafterSex}}" wx:key="{{item}}">
								<radio value="{{item}}" color="#fff" />{{item}}
							</label>
						</radio-group>
					</view>
					<view class="block"><text class="red">*</text>主要照料人电话<input bindinput="tab1Change23" placeholder="请填写主要照料人电话" name="name" /></view>
					<view class="required" wx:if="{{islookPhoneNull}}">主要照料人电话不能为空哦！</view>
				</view>
				<view class="block">
					<view class="name"><text class="red">*</text>关爱服务需求</view>
					<checkbox-group bindchange="tab1Change24">
						<label wx:for="{{loveRequire}}" wx:key="{{item}}">
							<checkbox value="{{item}}" color="#fff" />{{item}}
						</label>
					</checkbox-group>
				</view>
				<view wx:if="{{isloveNull}}" class="required">关爱服务需求不能为空哦！</view>
				<input wx:if="{{isloveQt}}" bindinput="tab1change25" placeholder="请填写其它关爱服务需求" name="name" class="otherinput" />
				<view wx:if="{{isloveQtNull}}" class="required">其它关爱服务需求不能为空哦！</view>
				<view class="block">
					<view class="name"><text class="red">*</text>老年人类别</view>
					<checkbox-group bindchange="tab1Change26">
						<label wx:for="{{oldType}}" wx:key="{{item.name}}">
							<checkbox value="{{item.name}}" disabled="{{item.disable}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
						</label>
					</checkbox-group>
				</view>
				<view wx:if="{{isoldtypeNull}}" class="required">老年人类别不能为空哦！</view>
				<view class="scan" style="margin-top:20rpx">
					<image src="../../images/mz/upload.png" style="width:40rpx;height:40rpx;margin-top:5rpx;margin-left:30rpx"></image><text>请上传老人含面部照片</text>
				</view>

			</view>
			<!-- 第二个tab子女信息 -->
			<view wx:if="{{currentIndex==1}}">
				<view class="name"><text class="red">*</text>子女个数</view>
				<picker bindchange="tab2Change1" value="{{childNums[childIndex]}}" range="{{childNums}}">
					<view class="picker">
						{{childNums[childIndex]}}
					</view>
				</picker>
				<!-- <view style="margin-top:30rpx;font-weight:900">第1个子女信息</view> -->
				<view wx:for="{{childforTimes}}" wx:for-index="idx">
					<van-divider contentPosition="center">第{{idx+1}}个子女信息</van-divider>
					<view class="block"><text class="red">*</text>其他赡养人姓名<input bindinput="tab3Change2" placeholder="请填写其他赡养人姓名" name="name" /></view>
					<view wx:if="{{isothersyrName}}" class="required">其他赡养人姓名不能为空哦！</view>
					<view class="block">
						<view class="name"><text class="red">*</text>其他赡养人性别</view>
						<radio-group bindchange="tab2Change3">
							<label wx:for="{{othersyrSexArr}}" wx:key="{{item}}">
								<radio value="{{item}}" color="#fff" />{{item}}
							</label>
						</radio-group>
					</view>
					<view class="block"><text class="red">*</text>其他赡养人电话<input bindinput="tab3Change4" placeholder="请填写常用联系电话" name="name" /></view>
					<view wx:if="{{isothersyrPhone}}" class="required">其他赡养人电话不能为空哦！</view>
					<view class="name"><text class="red">*</text>与被赡养人关系</view>
					<picker bindchange="tab3Change5" value="{{othersyrRelation[othersyrRelationIndex]}}" range="{{othersyrRelation}}">
						<view class="picker">
							{{othersyrRelation[othersyrRelationIndex]}}
						</view>
					</picker>
					<view class="block" wx:if="{{syrRelationQT}}"><text class="red">*</text>与被赡养人其他关系<input bindinput="tab3Change6" placeholder="请填写与被赡养人其他关系" name="name" /></view>
					<view wx:if="{{isothersyRelation}}" class="required">与被赡养人其他关系不能为空哦！</view>
					<view class="name"><text class="red">*</text>是否外出</view>
					<picker bindchange="tab3Change7" value="{{othersyrIsout[othersyrIsoutIndex]}}" range="{{othersyrIsout}}">
						<view class="picker">
							{{othersyrIsout[othersyrIsoutIndex]}}
						</view>
					</picker>
					<view wx:if="{{showothersyrOut}}">
						<view class="block"><text class="red">*</text>外出原因<input bindinput="tab3Change8" placeholder="请填写外出原因" name="name" /></view>
						<view wx:if="{{isOutReason}}" class="required">外出原因不能为空哦！</view>
						<view class="block"><text class="red">*</text>外出地点
							<picker mode="region" bindchange="tab3Change9" value="{{region}}" custom-item="{{customItem}}">
								<view class="picker">
									{{region[0]}} {{region[1]}} {{region[2]}}
								</view>
							</picker>
						</view>
						<view class="block"><text class="red">*</text>最后一次离家时间
							<picker mode="date" bindchange="tab3Change10" value="{{date}}" fields="month">
								<view class="picker">
									{{date}}
								</view>
							</picker>
						</view>
					</view>
					<view class="name"><text class="red">*</text>是否有配偶</view>
					<picker bindchange="tab3Change11" value="{{othersyrIsMarry[othersyrIsMarryIndex]}}" range="{{othersyrIsMarry}}">
						<view class="picker">
							{{othersyrIsMarry[othersyrIsMarryIndex]}}
						</view>
					</picker>
					<view wx:if="{{isMarry}}" class="block"><text class="red">*</text>配偶姓名<input bindinput="tab3Change12" placeholder="请填写配偶姓名" name="name" /></view>
					<view wx:if="{{isMarryName}}" class="required">配偶姓名不能为空哦！</view>
					<view wx:if="{{isMarry}}" class="block"><text class="red">*</text>配偶联系电话<input bindinput="tab3Change13" placeholder="请填写配偶联系电话" name="name" /></view>
					<view wx:if="{{isMarryPhone}}" class="required">配偶联系电话不能为空哦！</view>
					<view class="name"><text class="red">*</text>平均一年探望次数</view>
					<picker bindchange="tab3Change14" value="{{othersyrTfTimes[othersyrTfTimesIndex]}}" range="{{othersyrTfTimes}}">
						<view class="picker">
							{{othersyrTfTimes[othersyrTfTimesIndex]}}
						</view>
					</picker>
				</view>
			</view>
			<!-- 第三个tab其他赡养义务人信息 -->
			<view wx:if="{{currentIndex==2}}">
				<view class="name"><text class="red">*</text>是否有其他赡养人</view>
				<picker bindchange="tab3Change1" value="{{othersyrArr[syrIndex]}}" range="{{othersyrArr}}">
					<view class="picker">
						{{othersyrArr[syrIndex]}}
					</view>
				</picker>
				<view wx:if="{{isHaveOther}}">
					<view class="block"><text class="red">*</text>其他赡养人姓名<input bindinput="tab3Change2" placeholder="请填写其他赡养人姓名" name="name" /></view>
					<view wx:if="{{isothersyrName}}" class="required">其他赡养人姓名不能为空哦！</view>
					<view class="block">
						<view class="name"><text class="red">*</text>其他赡养人性别</view>
						<radio-group bindchange="tab2Change3">
							<label wx:for="{{othersyrSexArr}}" wx:key="{{item}}">
								<radio value="{{item}}" color="#fff" />{{item}}
							</label>
						</radio-group>
					</view>
					<view class="block"><text class="red">*</text>其他赡养人电话<input bindinput="tab3Change4" placeholder="请填写常用联系电话" name="name" /></view>
					<view wx:if="{{isothersyrPhone}}" class="required">其他赡养人电话不能为空哦！</view>
					<view class="name"><text class="red">*</text>与被赡养人关系</view>
					<picker bindchange="tab3Change5" value="{{othersyrRelation[othersyrRelationIndex]}}" range="{{othersyrRelation}}">
						<view class="picker">
							{{othersyrRelation[othersyrRelationIndex]}}
						</view>
					</picker>
					<view class="block" wx:if="{{syrRelationQT}}"><text class="red">*</text>与被赡养人其他关系<input bindinput="tab3Change6" placeholder="请填写与被赡养人其他关系" name="name" /></view>
					<view wx:if="{{isothersyRelation}}" class="required">与被赡养人其他关系不能为空哦！</view>
					<view class="name"><text class="red">*</text>是否外出</view>
					<picker bindchange="tab3Change7" value="{{othersyrIsout[othersyrIsoutIndex]}}" range="{{othersyrIsout}}">
						<view class="picker">
							{{othersyrIsout[othersyrIsoutIndex]}}
						</view>
					</picker>
					<view wx:if="{{showothersyrOut}}">
						<view class="block"><text class="red">*</text>外出原因<input bindinput="tab3Change8" placeholder="请填写外出原因" name="name" /></view>
						<view wx:if="{{isOutReason}}" class="required">外出原因不能为空哦！</view>
						<view class="block"><text class="red">*</text>外出地点
							<picker mode="region" bindchange="tab3Change9" value="{{region}}" custom-item="{{customItem}}">
								<view class="picker">
									{{region[0]}} {{region[1]}} {{region[2]}}
								</view>
							</picker>
						</view>
						<view class="block"><text class="red">*</text>最后一次离家时间
							<picker mode="date" bindchange="tab3Change10" value="{{date}}" fields="month">
								<view class="picker">
									{{date}}
								</view>
							</picker>
						</view>
					</view>
					<view class="name"><text class="red">*</text>是否有配偶</view>
					<picker bindchange="tab3Change11" value="{{othersyrIsMarry[othersyrIsMarryIndex]}}" range="{{othersyrIsMarry}}">
						<view class="picker">
							{{othersyrIsMarry[othersyrIsMarryIndex]}}
						</view>
					</picker>
					<view wx:if="{{isMarry}}" class="block"><text class="red">*</text>配偶姓名<input bindinput="tab3Change12" placeholder="请填写配偶姓名" name="name" /></view>
					<view wx:if="{{isMarryName}}" class="required">配偶姓名不能为空哦！</view>
					<view wx:if="{{isMarry}}" class="block"><text class="red">*</text>配偶联系电话<input bindinput="tab3Change13" placeholder="请填写配偶联系电话" name="name" /></view>
					<view wx:if="{{isMarryPhone}}" class="required">配偶联系电话不能为空哦！</view>
					<view class="name"><text class="red">*</text>平均一年探望次数</view>
					<picker bindchange="tab3Change14" value="{{othersyrTfTimes[othersyrTfTimesIndex]}}" range="{{othersyrTfTimes}}">
						<view class="picker">
							{{othersyrTfTimes[othersyrTfTimesIndex]}}
						</view>
					</picker>
				</view>
			</view>
			<!-- 第四个tab寻访联系人信息 -->
			<view wx:if="{{currentIndex==3}}">
				<view class="block">
					<view class="name"><text class="red">*</text>巡访方式</view>
					<checkbox-group bindchange="tab4Change1">
						<label wx:for="{{visitWays}}" wx:key="{{item.name}}">
							<checkbox value="{{item.name}}" color="#fff" />{{item.name}}
						</label>
					</checkbox-group>
				</view>
				<view wx:if="{{isnull1}}" class="required">巡访方式不能为空哦！</view>
				<input wx:if="{{isVisitways}}" placeholder="请填写其它内容" bindinput="tab4Change2" name="name" class="otherinput" />
				<view wx:if="{{isVisitwaysnull}}" class="required">其它巡访方式不能为空哦！</view>
				<view class="block">
					<view class="name"><text class="red">*</text>巡访频次</view>
					<radio-group bindchange="tab4Change3">
						<label wx:for="{{visitTimes}}" wx:key="{{item.name}}">
							<radio value="{{item.name}}" color="#fff" />{{item.name}}
						</label>
					</radio-group>
				</view>
				<view wx:if="{{isnull2}}" class="required">巡访频次不能为空哦！</view>
				<input wx:if="{{isVisittimes}}" placeholder="请填写其它内容" bindinput="tab4change4" name="name" class="otherinput" />
				<view wx:if="{{isVisittimesnull}}" class="required">其它巡访频次不能为空哦！</view>
			</view>
		</view>
	</view>
</view>