roose 4 年之前
父節點
當前提交
6c6b92fb56
共有 2 個文件被更改,包括 1683 次插入577 次删除
  1. 1587 491
      pages/collectInfo/collectInfo.js
  2. 96 86
      pages/collectInfo/collectInfo.wxml

文件差異過大導致無法顯示
+ 1587 - 491
pages/collectInfo/collectInfo.js


+ 96 - 86
pages/collectInfo/collectInfo.wxml

@@ -2,7 +2,7 @@
 <view class="container1">
 	<view class="writeOldmanName" wx:if="{{showBj}}">
 		<view class="OldmanName_box">
-			<view class="oldmanname">请输入老人姓名</view>
+			<view class="oldmanname">请输入老人姓名1111111111</view>
 			<input auto-focus style="margin-left:50rpx;margin-top:30rpx;border:1px solid #279bff" bindblur="addOldName" value="{{addOldname}}" placeholder="请填写老人姓名" />
 			<view class="btn_box">
 				<view class="sure" bindtap="sure">确定</view>
@@ -58,6 +58,7 @@
 			<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>
@@ -69,7 +70,8 @@
 			<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>
+			<image  src="../../images/mz/unfinish.png" class="isfinish_icon"></image>
+			<!-- <image wx:else src="../../images/mz/finish.png" class="isfinish_icon"></image> -->
 		</view>
 	</view>
 	<!-- 右侧部分 -->
@@ -93,23 +95,23 @@
 					<!-- <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 bindblur="tab1Change1" placeholder="请填写老人姓名" value="{{oldInfo[activeIndex].name}}" /></view>
+				<view class="block"><text class="red">*</text>姓名<input class="{{oldInfo[activeIndex].status == '3' ? 'huiColor' : ''}}" disabled="{{oldInfo[activeIndex].status == '3'}}" bindblur="tab1Change1" placeholder="请填写老人姓名" value="{{oldInfo[activeIndex].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="{{oldInfo[activeIndex].oldSex}}" wx:key="{{item.name}}">
-							<radio value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
+							<radio disabled="{{oldInfo[activeIndex].status == '3'}}" value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</radio-group>
 				</view>
 				<view class="name"><text class="red">*</text>民族</view>
-				<picker bindchange="tab1Change3" value="{{oldInfo[activeIndex].nation}}" range="{{mzArr}}">
-					<view class="picker">
+				<picker bindchange="tab1Change3" disabled="{{oldInfo[activeIndex].status == '3'}}" value="{{oldInfo[activeIndex].nation}}" range="{{mzArr}}">
+					<view class="picker {{oldInfo[activeIndex].status == '3' ? 'huiColor' : ''}} ">
 						{{oldInfo[activeIndex].nation}}
 					</view>
 				</picker>
-				<view class="block"><text class="red">*</text>身份证号<input bindblur="tab1Change4" placeholder="请填写老人身份证号" value="{{oldInfo[activeIndex].idNumber}}" /></view>
+				<view class="block"><text class="red">*</text>身份证号<input class="{{oldInfo[activeIndex].status == '3' ? 'huiColor' : ''}}" bindblur="tab1Change4" disabled="{{oldInfo[activeIndex].status == '3'}}" placeholder="请填写老人身份证号" value="{{oldInfo[activeIndex].idNumber}}" /></view>
 				<view wx:if="{{oldCard}}" class="required">老人身份证号不能为空哦!</view>
 				<view wx:if="{{oldCard1}}" class="required">老人身份证号格式不对哦!</view>
 				<view class="block"><text class="red">*</text>联系电话<input bindblur="tab1Change5" placeholder="请填写联系电话" value="{{oldInfo[activeIndex].phone}}" /></view>
@@ -193,8 +195,9 @@
 					</checkbox-group>
 				</view>
 				<view wx:if="{{moneyFromOther}}" class="required">收入来源不能为空哦!</view>
-				<input wx:if="{{oldInfo[activeIndex].moneyFromAyy[4].checked}}" value="{{oldInfo[activeIndex].sourceOfIncomeExt}}" placeholder="请填写其它收入来源" bindblur="tab1Change14_1" name="name" class="otherinput" />
+				<input wx:if="{{oldInfo[activeIndex].moneyFromAyy[4].checked}}" placeholder="请填写其它收入来源" value="{{oldInfo[activeIndex].sourceOfIncomeExt}}" bindblur="tab1Change14_1" name="name" class="otherinput" />
 				<view wx:if="{{moneyOtherQtnull}}" class="required">其它收入来源不能为空哦!</view>
+
 				<view class="name"><text class="red">*</text>本人上年度可支配收入</view>
 				<picker bindchange="tab1Change15" value="{{oldInfo[activeIndex].income}}" range="{{payMoney}}">
 					<view class="picker">
@@ -229,7 +232,7 @@
 					</checkbox-group>
 				</view>
 				<view wx:if="{{isliveNull}}" class="required">陪伴居住情况不能为空哦!</view>
-				<input wx:if="{{oldInfo[activeIndex].liveStatus[4].checked}}" value="{{oldInfo[activeIndex].accompanyExt}}" placeholder="请填写其他陪伴居住情况" bindblur="tab1Change18_1"  class="otherinput" />
+				<input wx:if="{{oldInfo[activeIndex].liveStatus[4].checked}}" value="{{oldInfo[activeIndex].accompanyExt}}" placeholder="请填写其他陪伴居住情况" bindblur="tab1Change18_1" class="otherinput" />
 				<view wx:if="{{isliveQtNull}}" class="required">其他陪伴居住情况不能为空哦!</view>
 				<view class="block">
 					<view class="name"><text class="red">*</text>日常生活照料人</view>
@@ -256,191 +259,198 @@
 					<view class="block"><text class="red">*</text>主要照料人电话<input value="{{oldInfo[activeIndex].mainLookPhone}}" bindblur="tab1Change23" placeholder="请填写主要照料人电话" name="name" /></view>
 					<view class="required" wx:if="{{islookPhoneNull}}">主要照料人电话不能为空哦!</view>
 				</view>
+				<!-- <view wx:if="{{moneyFromOther}}" class="required">收入来源不能为空哦!</view>
+				<input wx:if="{{oldInfo[activeIndex].moneyFromAyy[4].checked}}" placeholder="请填写其它收入来源" value="{{oldInfo[activeIndex].sourceOfIncomeExt}}" bindblur="tab1Change14_1" name="name" class="otherinput" /> -->
 				<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 wx:for="{{oldInfo[activeIndex].loveRequire}}" wx:key="{{item.name}}">
+							<checkbox value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
 				</view>
 				<view wx:if="{{isloveNull}}" class="required">关爱服务需求不能为空哦!</view>
-				<input wx:if="{{isloveQt}}" bindblur="tab1change25" placeholder="请填写其它关爱服务需求" name="name" class="otherinput" />
+				<input wx:if="{{oldInfo[activeIndex].loveRequire[8].checked}}" placeholder="请填写其它关爱服务需求" value="{{oldInfo[activeIndex].demandExt}}" bindblur="tab1Change24_1" 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}}">
+						<label wx:for="{{oldInfo[activeIndex].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" bindtap="goPhoto">
-					<image wx:if="{{!isHavePhoto}}" src="../../images/mz/upload.png" style="width:40rpx;height:40rpx;margin-top:5rpx;margin-left:30rpx"></image><text>请上传老人含面部照片</text>
-					<image wx:if="{{isHavePhoto}}" class="image" style="width:350rpx;height:350rpx" src="{{urls.url(imgPath)}}" mode='scaleToFill' bindtap="previewImg"></image>
+				<view class="scan" wx:if="{{oldInfo[activeIndex].imgPath == ''}}" style="margin-top:20rpx" bindtap="goPhoto">
+					<image src="../../images/mz/upload.png" style="width:40rpx;height:40rpx;margin-top:5rpx;margin-left:30rpx"></image><text >请上传老人含面部照片</text>
+				</view>
+				<view wx:if="{{oldInfo[activeIndex].imgPath}}" class="boxssss">
+					<image class="image" style="width:350rpx;height:350rpx" src="{{urls.url(oldInfo[activeIndex].imgPath)}}" mode='scaleToFill' bindtap="previewImg"></image>
+					<van-icon size='23' name="clear" class="close" data-index="{{index}}" bindtap="closeImage" data-activeIndex='{{activeIndex}}' />
 				</view>
-
 			</view>
 			<!-- 第二个tab子女信息 -->
 			<view wx:if="{{currentIndex==1}}">
 				<view class="name"><text class="red">*</text>子女个数</view>
-				<picker bindchange="tab2Change1" value="{{childNums[childIndex]}}" range="{{childNums}}">
+				<picker bindchange="tab2Change1" value="{{childInfo[activeIndex].childrenNum}}" range="{{childNumArr}}">
 					<view class="picker">
-						{{childNums[childIndex]}}
+						{{childInfo[activeIndex].childrenNum}}
 					</view>
 				</picker>
 				<!-- <view style="margin-top:30rpx;font-weight:900">第1个子女信息</view> -->
-				<view wx:for="{{childforTimes}}" wx:for-index="idx">
+				<view wx:for="{{childInfo[activeIndex].Info}}" wx:for-index="idx">
 					<van-divider contentPosition="center">第{{idx+1}}个子女信息</van-divider>
-					<view class="block"><text class="red">*</text>子女姓名<input data-index="{{idx}}" bindblur="tab2Change2" placeholder="子女姓名" name="name" /></view>
-					<view wx:if="{{ischildName[idx]}}" class="required">子女姓名不能为空哦!</view>
+					<view class="block"><text class="red">*</text>子女姓名<input data-index="{{idx}}" bindblur="tab2Change2" placeholder="子女姓名" value="{{childInfo[activeIndex].Info[idx].name}}" /></view>
+					<view class="required">子女姓名不能为空哦!</view>
 					<view class="block">
 						<view class="name"><text class="red">*</text>子女性别</view>
-						<radio-group data-index="{{idx}}" bindchange="tab2Change3">
-							<label wx:for="{{childSexArr}}" wx:key="{{item}}">
-								<radio value="{{item}}" color="#fff" />{{item}}
-							</label>
-						</radio-group>
+						<picker bindchange="tab2Change3" data-index="{{idx}}" value="{{childInfo[activeIndex].Info[idx].sex}}" range="{{childSexArr}}">
+							<view class="picker">
+								{{childInfo[activeIndex].Info[idx].sex}}
+							</view>
+						</picker>
 					</view>
-					<view class="block"><text class="red">*</text>子女联系电话<input data-index="{{idx}}" bindblur="tab2Change4" placeholder="请填写常用联系电话" name="name" /></view>
+					<view class="block"><text class="red">*</text>子女联系电话<input data-index="{{idx}}" bindblur="tab2Change4" placeholder="请填写常用联系电话" value="{{childInfo[activeIndex].Info[idx].phone}}" /></view>
 					<view wx:if="{{ischildPhone[idx]}}" class="required">子女联系电话不能为空哦!</view>
 					<view class="name"><text class="red">*</text>是否外出</view>
-					<radio-group data-index="{{idx}}" bindchange="tab2Change5">
-						<label wx:for="{{childIsout}}" wx:key="{{item}}">
-							<radio value="{{item}}" color="#fff" />{{item}}
-						</label>
-					</radio-group>
-					<view wx:if="{{showchildOut[idx]}}">
-						<view class="block"><text class="red">*</text>外出原因<input data-index="{{idx}}" bindblur="tab2Change6" placeholder="请填写外出原因" name="name" /></view>
+					<picker bindchange="tab2Change5" data-index="{{idx}}" value="{{childInfo[activeIndex].Info[idx].isHasGoOut}}" range="{{childIsout}}">
+						<view class="picker">
+							{{childInfo[activeIndex].Info[idx].isHasGoOut}}
+						</view>
+					</picker>
+					<view wx:if="{{childInfo[activeIndex].Info[idx].isHasGoOut=='是'}}">
+						<view class="block"><text class="red">*</text>外出原因<input data-index="{{idx}}" bindblur="tab2Change6" placeholder="请填写外出原因" value="{{childInfo[activeIndex].Info[idx].outgoingCause}}" /></view>
 						<view wx:if="{{ischildOutReason[idx]}}" class="required">外出原因不能为空哦!</view>
 						<view class="block"><text class="red">*</text>外出地点
-							<picker mode="region" data-index="{{idx}}" bindchange="tab2Change7" value="{{region0[idx]}}">
+							<picker mode="region" data-index="{{idx}}" bindchange="tab2Change7" value="{{childInfo[activeIndex].Info[idx].outgoingplace}}">
 								<view class="picker">
-									{{region0[idx][0]}} {{region0[idx][1]}} {{region0[idx][2]}}
+									{{childInfo[activeIndex].Info[idx].outgoingplace}}
 								</view>
 							</picker>
 						</view>
 						<view class="block"><text class="red">*</text>最后一次离家时间
-							<picker mode="date" data-index="{{idx}}" bindchange="tab2Change8" value="{{childLeaveDate[idx]}}" fields="month">
+							<picker mode="date" data-index="{{idx}}" bindchange="tab2Change8" value="{{childInfo[activeIndex].Info[idx].outgoingTime}}" fields="month">
 								<view class="picker">
-									{{childLeaveDate[idx]}}
+									{{childInfo[activeIndex].Info[idx].outgoingTime}}
 								</view>
 							</picker>
 						</view>
 					</view>
 					<view class="name"><text class="red">*</text>是否有配偶</view>
-					<radio-group data-index="{{idx}}" bindchange="tab2Change9">
-						<label wx:for="{{childIsMArry}}" wx:key="{{item}}">
-							<radio value="{{item}}" color="#fff" />{{item}}
-						</label>
-					</radio-group>
-					<view wx:if="{{ischildMarry[idx]}}" class="block"><text class="red">*</text>配偶姓名<input data-index="{{idx}}" bindblur="tab2Change10" placeholder="请填写配偶姓名" name="name" /></view>
+					<picker bindchange="tab2Change9" data-index="{{idx}}" value="{{childInfo[activeIndex].Info[idx].isHasPartner}}" range="{{childIsMArry}}">
+						<view class="picker">
+							{{childInfo[activeIndex].Info[idx].isHasPartner}}
+						</view>
+					</picker>
+					<view wx:if="{{childInfo[activeIndex].Info[idx].isHasPartner=='是'}}" class="block"><text class="red">*</text>配偶姓名<input data-index="{{idx}}" bindblur="tab2Change10" placeholder="请填写配偶姓名" value="{{childInfo[activeIndex].Info[idx].name2}}" /></view>
 					<view wx:if="{{ischildMarryName[idx]}}" class="required">配偶姓名不能为空哦!</view>
-					<view wx:if="{{ischildMarry[idx]}}" class="block"><text class="red">*</text>配偶联系电话<input data-index="{{idx}}" bindblur="tab2Change11" placeholder="请填写配偶联系电话" name="name" /></view>
+					<view wx:if="{{ischildMarry[idx]}}" class="block"><text class="red">*</text>配偶联系电话<input data-index="{{idx}}" bindblur="tab2Change11" placeholder="请填写配偶联系电话" value="{{childInfo[activeIndex].Info[idx].phone2}}" /></view>
 					<view wx:if="{{ischildMarryPhone[idx]}}" class="required">配偶联系电话不能为空哦!</view>
 					<view class="name"><text class="red">*</text>平均一年探望次数</view>
-					<radio-group data-index="{{idx}}" bindchange="tab2Change12">
-						<label wx:for="{{childTfTimes}}" wx:key="{{item}}">
-							<radio value="{{item}}" color="#fff" />{{item}}
-						</label>
-					</radio-group>
+					<picker bindchange="tab2Change12" data-index="{{idx}}" value="{{childInfo[activeIndex].Info[idx].visit}}" range="{{childTfTimes}}">
+						<view class="picker">
+							{{childInfo[activeIndex].Info[idx].visit}}
+						</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}}">
+				<picker bindchange="tab3Change1" value="{{otherInfo[activeIndex].isHasOther}}" range="{{othersyrArr}}">
 					<view class="picker">
-						{{othersyrArr[syrIndex]}}
+						{{otherInfo[activeIndex].isHasOther}}
 					</view>
 				</picker>
-				<view wx:if="{{isHaveOther}}">
-					<view class="block"><text class="red">*</text>其他赡养人姓名<input bindblur="tab3Change2" placeholder="请填写其他赡养人姓名" name="name" /></view>
+				<view wx:if="{{otherInfo[activeIndex].isHasOther=='是'}}">
+					<view class="block"><text class="red">*</text>其他赡养人姓名<input bindblur="tab3Change2" placeholder="请填写其他赡养人姓名" value="{{otherInfo[activeIndex].Info.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}}
+						<radio-group bindchange="tab3Change3">
+							<label wx:for="{{	otherInfo[activeIndex].Info.othersyrSexArr}}" wx:key="{{item}}">
+								<radio value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 							</label>
 						</radio-group>
 					</view>
-					<view class="block"><text class="red">*</text>其他赡养人电话<input bindblur="tab3Change4" placeholder="请填写常用联系电话" name="name" /></view>
+					<view class="block"><text class="red">*</text>其他赡养人电话<input bindblur="tab3Change4" value="{{otherInfo[activeIndex].Info.phone}}" 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}}">
+					<picker bindchange="tab3Change5" value="{{otherInfo[activeIndex].Info.relation}}" range="{{othersyrRelation}}">
 						<view class="picker">
-							{{othersyrRelation[othersyrRelationIndex]}}
+							{{otherInfo[activeIndex].Info.relation}}
 						</view>
 					</picker>
-					<view class="block" wx:if="{{syrRelationQT}}"><text class="red">*</text>与被赡养人其他关系<input bindblur="tab3Change6" placeholder="请填写与被赡养人其他关系" name="name" /></view>
+					<view class="block" wx:if="{{otherInfo[activeIndex].Info.relation  == '其他'}}"><text class="red">*</text>与被赡养人其他关系<input bindblur="tab3Change6" placeholder="请填写与被赡养人其他关系" value="{{otherInfo[activeIndex].Info.relationExt}}" 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}}">
+					<picker bindchange="tab3Change7" value="{{otherInfo[activeIndex].Info.isHasGoOut}}" range="{{othersyrIsout}}">
 						<view class="picker">
-							{{othersyrIsout[othersyrIsoutIndex]}}
+							{{otherInfo[activeIndex].Info.isHasGoOut}}
 						</view>
 					</picker>
-					<view wx:if="{{showothersyrOut}}">
-						<view class="block"><text class="red">*</text>外出原因<input bindblur="tab3Change8" placeholder="请填写外出原因" name="name" /></view>
+					<view wx:if="{{otherInfo[activeIndex].Info.isHasGoOut=='是'}}">
+						<view class="block"><text class="red">*</text>外出原因<input bindblur="tab3Change8" placeholder="请填写外出原因" value="{{otherInfo[activeIndex].Info.outgoingCause}}" /></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}}">
+							<picker mode="region" bindchange="tab3Change9" value="{{otherInfo[activeIndex].Info.outgoingplace}}">
 								<view class="picker">
-									{{region[0]}} {{region[1]}} {{region[2]}}
+									{{otherInfo[activeIndex].Info.outgoingplace}}
 								</view>
 							</picker>
 						</view>
 						<view class="block"><text class="red">*</text>最后一次离家时间
-							<picker mode="date" bindchange="tab3Change10" value="{{date}}" fields="month">
+							<picker mode="date" bindchange="tab3Change10" value="{{otherInfo[activeIndex].Info.outgoingTime}}" fields="month">
 								<view class="picker">
-									{{date}}
+									{{otherInfo[activeIndex].Info.outgoingTime}}
 								</view>
 							</picker>
 						</view>
 					</view>
 					<view class="name"><text class="red">*</text>是否有配偶</view>
-					<picker bindchange="tab3Change11" value="{{othersyrIsMarry[othersyrIsMarryIndex]}}" range="{{othersyrIsMarry}}">
+					<picker bindchange="tab3Change11" value="{{otherInfo[activeIndex].Info.isHasPartner}}" range="{{othersyrIsMarry}}">
 						<view class="picker">
-							{{othersyrIsMarry[othersyrIsMarryIndex]}}
+							{{otherInfo[activeIndex].Info.isHasPartner}}
 						</view>
 					</picker>
-					<view wx:if="{{isMarry}}" class="block"><text class="red">*</text>配偶姓名<input bindblur="tab3Change12" placeholder="请填写配偶姓名" name="name" /></view>
-					<view wx:if="{{isMarryName}}" class="required">配偶姓名不能为空哦!</view>
-					<view wx:if="{{isMarry}}" class="block"><text class="red">*</text>配偶联系电话<input bindblur="tab3Change13" placeholder="请填写配偶联系电话" name="name" /></view>
-					<view wx:if="{{isMarryPhone}}" class="required">配偶联系电话不能为空哦!</view>
+					<view wx:if="{{otherInfo[activeIndex].Info.isHasPartner=='是'}}">
+						<view class="block"><text class="red">*</text>配偶姓名<input bindblur="tab3Change12" placeholder="请填写配偶姓名" value="{{otherInfo[activeIndex].Info.name2}}" /></view>
+						<view wx:if="{{isMarryName}}" class="required">配偶姓名不能为空哦!</view>
+						<view class="block"><text class="red">*</text>配偶联系电话<input bindblur="tab3Change13" placeholder="请填写配偶联系电话" value="{{otherInfo[activeIndex].Info.phone2}}" /></view>
+						<view wx:if="{{isMarryPhone}}" class="required">配偶联系电话不能为空哦!</view>
+					</view>
 					<view class="name"><text class="red">*</text>平均一年探望次数</view>
-					<picker bindchange="tab3Change14" value="{{othersyrTfTimes[othersyrTfTimesIndex]}}" range="{{othersyrTfTimes}}">
+					<picker bindchange="tab3Change14" value="{{otherInfo[activeIndex].Info.visit}}" range="{{othersyrTfTimes}}">
 						<view class="picker">
-							{{othersyrTfTimes[othersyrTfTimesIndex]}}
+							{{otherInfo[activeIndex].Info.visit}}
 						</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 wx:for="{{oldInfo[activeIndex].regularsInfos.visitMode}}" wx:key="{{item.name}}">
+							<checkbox value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
 				</view>
-				<view wx:if="{{isnull1}}" class="required">巡访方式不能为空哦!</view>
-				<input wx:if="{{isVisitways}}" placeholder="请填写其它内容" bindblur="tab4Change2" name="name" class="otherinput" />
-				<view wx:if="{{isVisitwaysnull}}" class="required">其它巡访方式不能为空哦!</view>
+				<view wx:if="{{visitWaysFromOther}}" class="required">巡访方式不能为空哦!</view>
+				<input wx:if="{{oldInfo[activeIndex].regularsInfos.visitMode[2].checked}}" placeholder="请填写其它内容" value="{{oldInfo[activeIndex].regularsInfos.visitModeExt}}" bindblur="tab4Change1_1" name="name" class="otherinput" />
+				<view wx:if="{{isVisittimesnull}}" 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 wx:for="{{oldInfo[activeIndex].regularsInfos.visitCount}}" wx:key="{{item.name}}">
+							<radio value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</radio-group>
 				</view>
 				<view wx:if="{{isnull2}}" class="required">巡访频次不能为空哦!</view>
-				<input wx:if="{{isVisittimes}}" placeholder="请填写其它内容" bindblur="tab4change4" name="name" class="otherinput" />
+				<input wx:if="{{oldInfo[activeIndex].regularsInfos.visitCount[4].checked}}" value="{{oldInfo[activeIndex].regularsInfos.visitCountExt}}" placeholder="请填写其它内容" bindblur="tab4change4" name="name" class="otherinput" />
 				<view wx:if="{{isVisittimesnull}}" class="required">其它巡访频次不能为空哦!</view>
 			</view>
 		</view>