소스 검색

0829 采集页修改

ssfg 4 년 전
부모
커밋
bde144f85c

BIN
images/mz/1.png


BIN
images/mz/2.png


BIN
images/mz/3.png


BIN
images/mz/4.png


BIN
images/mz/5.png


BIN
images/mz/6.png


BIN
images/mz/7.png


BIN
images/mz/8.png


BIN
images/mz/closebtn.png


BIN
images/mz/finish.png


BIN
images/mz/scan.png


BIN
images/mz/step_finish.png


BIN
images/mz/unfinish.png


BIN
images/mz/upload.png


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1757 - 2
pages/collectInfo/collectInfo.js


+ 2 - 2
pages/collectInfo/collectInfo.json

@@ -1,4 +1,4 @@
 {
-  "navigationBarTitleText":"采集",
-  "usingComponents": {}
+  "usingComponents": {},
+  "navigationBarTitleText": "开始采集"
 }

+ 448 - 1
pages/collectInfo/collectInfo.wxml

@@ -1 +1,448 @@
-<view>aaa</view>
+<wxs module="urls" src="../../utils/photoUrl.wxs"></wxs>
+<view class="container1">
+	<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" bindinput="addOldName" value="{{addOldname}}" placeholder="请填写老人姓名" />
+			<view class="btn_box">
+				<view class="sure" bindtap="sure">确定</view>
+				<view class="esc" bindtap="qx">取消</view>
+			</view>
+		</view>
+	</view>
+	<view class="writeOldmanName" wx:if="{{showBj1}}">
+		<view class="OldmanName_box">
+			<view class="oldmanname">请输入老人姓名</view>
+			<input auto-focus style="margin-left:50rpx;margin-top:30rpx;border:1px solid #279bff" bindinput="addOldName1" value="{{addOldname1}}" placeholder="请填写老人姓名" />
+			<view class="btn_box">
+				<view class="sure" bindtap="sure1">确定</view>
+				<view class="esc" bindtap="qx1">取消</view>
+			</view>
+		</view>
+	</view>
+	<van-popup show="{{ showAdress }}" round position="bottom" custom-style="height: 70%" bind:close="closeAdress">
+		<!-- <image src="../../images/mz/closebtn.png" class="close_img" bindtap="closeAdress"></image> -->
+		<view class="choosedAdress_box">
+			<view class="choosedAdress" wx:for='{{chooseAdressArr}}' bindtap="reSelect" data-index="{{index}}" data-value="{{item}}">
+				<image src="../../images/mz/step_finish.png" style="width:30rpx;height:30rpx;margin-left:10rpx;marign-right:10rpx"></image>{{item.CIVILREGIONALISMNAME}}
+			</view>
+		</view>
+		<view class="adress_title" wx:if="{{pleaseChoose}}">请选择</view>
+		<view class="adress_detail">
+			<view wx:for='{{provinceArr}}'>
+				<view bindtap="provinceClick" data-item="{{item}}">{{item.CIVILREGIONALISMNAME}}</view>
+			</view>
+		</view>
+	</van-popup>
+	<!-- <view class="adress_box" wx:if="{{showAdress}}">
+		<image src="../../images/mz/closebtn.png" class="close_img" bindtap="closeAdress"></image>
+		<view class="choosedAdress_box">
+			<view class="choosedAdress" wx:for='{{chooseAdressArr}}' bindtap="reSelect" data-index="{{index}}" data-value="{{item}}">
+				<image src="../../images/mz/step_finish.png" style="width:30rpx;height:30rpx;margin-left:10rpx;marign-left:10rpx"></image>{{item.CIVILREGIONALISMNAME}}
+			</view>
+		</view>
+		<view class="adress_title" wx:if="{{pleaseChoose}}">请选择</view>
+		<view class="adress_detail">
+			<view wx:for='{{provinceArr}}'>
+				<view bindtap="provinceClick" data-item="{{item}}">{{item.CIVILREGIONALISMNAME}}</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="name_smallName">
+				<view class="{{currentActiveIndex==index?'unsinglename':'singlename'}}" wx:for="{{nameArr}}" wx:key="{{item}}" >
+					<view style="line-height:50rpx" data-index="{{index}}" bindtap="switchNameTab">{{item.name}}</view>
+					<van-icon bindtap="deleteName" data-item="{{item}}" data-index="{{index}}" name="close" style="margin-left:25rpx;" />
+				</view>
+			</view>
+			<view class="addname_box">
+				<van-icon name="add-o" color="#2087f7" size="40rpx" bindtap="addFamilyOldman" />
+			</view>
+		</view>
+		<view class="form_box">
+			<view wx:if="{{currentIndex==0}}" bindtap="goOcr">
+				<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 bindblur="tab1Change1" placeholder="请填写老人姓名" value="{{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 bindblur="tab1Change4" placeholder="请填写老人身份证号" name="name" /></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="请填写联系电话" name="name" /></view>
+				<view wx:if="{{oldPhone}}" class="required">老人联系电话不能为空哦!</view>
+				<view wx:if="{{oldPhone1}}" class="required">老人联系电话格式不对哦!</view>
+				<view class="block"><text class="red">*</text>户籍地址
+					<view class="otherinput" bindtap="chooseAdress">点击选择户籍地址</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 wx:if="{{oldisMarry}}" class="block"><text class="red">*</text>配偶姓名<input bindblur="tab1Change8_1" placeholder="请填写配偶姓名" name="name" /></view>
+				<view wx:if="{{oldisMarryName}}" class="required">配偶姓名不能为空哦!</view>
+				<view wx:if="{{oldisMarry}}" class="block"><text class="red">*</text>配偶身份证号<input bindblur="tab1Change8_2" placeholder="请填写配偶联系电话" name="name" /></view>
+				<view wx:if="{{oldisMarryPhone}}" class="required">配偶身份证号不能为空哦!</view>
+				<view wx:if="{{oldisMarryPhoneGs}}" class="required">配偶身份证号格式不对哦!</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="tab1Change11" 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="tab1Change12" value="{{ableStatus[ableIndex]}}" range="{{ableStatus}}">
+					<view class="picker">
+						{{ableStatus[ableIndex]}}
+					</view>
+				</picker>
+				<view class="name"><text class="red">*</text>生活经济情况</view>
+				<picker bindchange="tab1Change13" 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="请填写其它收入来源" 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="{{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="请填写其它救助情况" bindblur="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.disabled}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
+						</label>
+					</checkbox-group>
+				</view>
+				<view wx:if="{{isliveNull}}" class="required">陪伴居住情况不能为空哦!</view>
+				<input wx:if="{{isliveQt}}" placeholder="请填写其他陪伴居住情况" bindblur="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}}" bindblur="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 bindblur="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 bindblur="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}}" bindblur="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" 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>
+
+			</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 data-index="{{idx}}" bindblur="tab2Change2" 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="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>

+ 404 - 0
pages/collectInfo/collectInfo.wxss

@@ -0,0 +1,404 @@
+page {
+  background-color: #f9f9f7;
+}
+.writeOldmanName{
+  width: 100%;
+  height: 100vh;
+  background-color: rgba(0,0,0,0.5);
+  position: absolute;
+  top: 0;
+  z-index: 99;
+}
+.OldmanName_box{
+  width: 550rpx;
+  height: 300rpx;
+  background-color: #fff;
+  position: absolute;
+  top: 300rpx;
+  left: 100rpx;
+  border-radius: 10rpx;
+}
+.oldmanname{
+  text-align: center;
+  color: #666666;
+  margin-top: 30rpx;
+}
+.adress_box{
+  width: 750rpx;
+  height: 750rpx;
+  background-color: #fff;
+  position: fixed;
+  bottom: 0;
+  border-radius: 20rpx 20rpx 0 0;
+}
+.adress_title{
+  text-align: center;
+  /* margin-top: 10rpx; */
+  font-weight: 800;
+  color: #666666;
+  margin-top: 3%;
+}
+.adress_detail{
+  width: 650rpx;
+  height: 70%;
+  margin-top: 5%;
+  /* height: 450rpx; */
+  margin-left: 50rpx;
+  border: 1px solid red;
+  white-space: nowrap;
+  overflow-y:scroll;
+}
+.btn_box{
+  width: 100%;
+  display: flex;
+  height: 80rpx;
+  margin-top: 50rpx;
+}
+.sure{
+  height: 50rpx;
+  line-height: 50rpx;
+  background-color: #2087f7;
+  color: #fff;
+  border-radius: 10rpx;
+  font-size: 27rpx;
+  margin-left: 150rpx;
+  width: 100rpx;
+  text-align: center;
+}
+.esc{
+  height: 50rpx;
+  line-height: 50rpx;
+  /* background-color: #2087f7; */
+  color: #fff;
+  border-radius: 10rpx;
+  font-size: 27rpx;
+  margin-left: 50rpx;
+  width: 100rpx;
+  text-align: center;
+  border: 1px solid #579bfb;
+  color: #579bfb;
+}
+.left {
+  width: 200rpx;
+  float: left;
+  margin-left: 10rpx;
+}
+
+.right {
+  height: 90vh;
+  width: 510rpx;
+  float: right;
+  margin-right: 20rpx;
+  font-size: 28rpx;
+  color: #666666;
+  padding-bottom: 50rpx;
+}
+.scan{
+  width: 450rpx;
+  height: 50rpx;
+  border: 1px solid #2087f7;
+  border-radius: 10rpx;
+  margin-top: 10rpx;
+  margin-bottom: 10rpx;
+  background-color: #d2e7fd;
+  display: flex;
+  font-size: 25rpx;
+  color: #2087f7;
+}
+.scan text{
+  margin-left:10rpx;
+  line-height: 50rpx;
+  padding-bottom: 10rpx;
+  letter-spacing: 2rpx;
+}
+.block1 {
+  width: 172rpx;
+  margin-left: 10rpx;
+  height: 161rpx;
+  margin-top: 100rpx;
+  position: relative;
+  background-color: #2087f7;
+  text-align: center;
+  border-radius: 20rpx;
+  color: #fff;
+  box-shadow: 0px 0px 20px 0px #cfdfed;
+}
+
+.clickblock1 {
+  background-color: #fff;
+  color: #666666;
+}
+
+.block2 {
+  width: 172rpx;
+  margin-left: 10rpx;
+  height: 161rpx;
+  margin-top: 50rpx;
+  position: relative;
+  background-color: #fff;
+  text-align: center;
+  border-radius: 20rpx;
+  box-shadow: 0px 0px 10px 0px #e3ecf2;
+}
+
+.clickblock2 {
+  background-color: #2087f7;
+  color: #fff;
+}
+
+.img {
+  width: 70rpx;
+  height: 70rpx;
+  position: absolute;
+  top: 25rpx;
+  left: 51rpx;
+}
+
+.img1 {
+  top: 15rpx;
+}
+
+.title {
+  color: #fff;
+  width: 150rpx;
+  margin-top: 100rpx;
+  font-size: 26rpx;
+  display: inline-block;
+  text-align: center;
+}
+
+.title1 {
+  color: #666666;
+  width: 150rpx;
+  margin-top: 100rpx;
+  font-size: 26rpx;
+  display: inline-block;
+  text-align: center;
+}
+
+.title2 {
+  color: #666666;
+  width: 150rpx;
+  margin-top: 80rpx;
+  font-size: 26rpx;
+  display: inline-block;
+  text-align: center;
+}
+
+.title3 {
+  color: #666666;
+  width: 150rpx;
+  margin-top: 0rpx;
+  font-size: 26rpx;
+  display: inline-block;
+  text-align: center;
+}
+.title4 {
+  color: #fff;
+}
+.isfinish_icon {
+  width: 35rpx;
+  height: 35rpx;
+  position: absolute;
+  top: -10rpx;
+  left: -10rpx;
+}
+
+.name_box {
+  width: 500rpx;
+  height: 60rpx;
+  /* overflow-x: auto; */
+  display: flex;
+  /* white-space: nowrap; */
+  margin-top: 20rpx;
+  position: relative;
+  /* border: 1px solid red; */
+}
+.name_smallName{
+  width: 430rpx;
+  height: 60rpx;
+  overflow-x: auto;
+  white-space: nowrap;
+  display: flex;
+  /* top: 0;
+  left: 10rpx; */
+  /* border: 1px solid red; */
+}
+.addname_box{
+  width: 60rpx;
+  height: 40rpx;
+  margin-top: 10rpx;
+  /* position: absolute; */
+  /* right: 20rpx; */
+  /* top: 5rpx; */
+}
+.singlename {
+  /* background-color: #2087f7; */
+  border: 1px solid #2087f7;
+  color: #2087f7;
+  height: 50rpx;
+  margin: 0 10rpx;
+  padding: 0 10rpx;
+  /* color: #fff; */
+  font-size: 25rpx;
+  border-radius: 10rpx;
+  display: flex;
+  width: auto;
+}
+.unsinglename {
+  border: 1px solid #2087f7;
+  background-color: #2087f7;
+  height: 50rpx;
+  margin: 0 10rpx;
+  padding: 0 10rpx;
+  color: #fff;
+  font-size: 25rpx;
+  border-radius: 10rpx;
+  display: flex;
+  width: auto;
+}
+.name {
+  margin-top: 40rpx;
+}
+.form_box{
+  height: 85vh;
+  overflow-y: auto;
+  padding-bottom: 50rpx;
+  background-color: #fff;
+  margin-top: 20rpx;
+  padding-left:20rpx;
+  box-shadow: 0px 0px 20px 0px #cfdfed;
+  border-radius: 20rpx;
+}
+checkbox .wx-checkbox-input {
+  width: 22rpx;
+  height: 22rpx;
+}
+
+checkbox .wx-checkbox-input.wx-checkbox-input-checked {
+  background-color: #2087f7;
+  color: #fff;
+}
+
+
+
+input {
+  height: 50rpx;
+  margin-top: 10rpx;
+  width: 450rpx;
+  border: 1px solid #e3e5eb;
+  border-radius: 10rpx;
+  text-indent: 20rpx;
+}
+
+.block {
+  margin-top: 30rpx;
+}
+
+checkbox-group label {
+  margin-left: 20rpx;
+  display: inline-block;
+  margin-top: 20rpx;
+}
+radio-group label {
+  margin-left: 20rpx;
+  display: inline-block;
+  margin-top: 20rpx;
+}
+.required {
+  color: red;
+  margin-left: 20rpx;
+  margin-top: 10rpx;
+  font-size: 25rpx;
+}
+.otherinput {
+  height: 50rpx;
+  margin-top: 10rpx;
+  width: 450rpx;
+  border: 1px solid #e3e5eb;
+  border-radius: 10rpx;
+  text-indent: 20rpx;
+  line-height: 50rpx;
+}
+.picker {
+  height: 50rpx;
+  border: 1px solid #e3e5eb;
+  width: 450rpx;
+  border-radius: 10rpx;
+  text-indent: 20rpx;
+  line-height: 50rpx;
+  margin-top: 10rpx;
+}
+.red {
+  color: red;
+}
+.adress_box {
+  width: 750rpx;
+  height: 70vh;
+  background-color: #f6f6f6;
+  position: fixed;
+  bottom: 0;
+  border-radius: 50rpx 50rpx 0 0;
+  z-index: 99;
+  /* text-align: center; */
+}
+
+.choose_text {
+  font-size: 30rpx;
+  margin-top: 30rpx;
+  text-align: center;
+}
+radio .wx-radio-input {
+  width: 22rpx;
+  height: 22rpx;
+} 
+
+ radio .wx-radio-input.wx-radio-input-checked::before {
+  background-color: #2087f7;
+  color: #fff;
+  border-radius: 22rpx;
+}
+.close_img{
+  width: 30rpx;
+  height: 30rpx;
+  position: absolute;
+  top: 50rpx;
+  right: 50rpx;
+}
+/* 
+radio .wx-radio-input.wx-radio-input-checked::before{
+  border-radius: 50%;
+  width: 18rpx; 
+  height: 18rpx; 
+  text-align: center;
+  font-size:0rpx; 
+  background-color: #00a0e9; 
+  
+}
+radio{
+  border-radius: 50%;
+  width: 22rpx;
+  height: 22rpx;
+  border: 2px solid #e7e9ee;
+  font-size: 0;
+  margin-bottom: 10rpx;
+  display: inline-block;
+}
+radio .wx-radio-input{
+   border-radius: 50%;
+   width: 22rpx;
+   height: 22rpx; 
+   border: none;
+} */
+.choosedAdress_box{
+  width: 650rpx;
+  margin-left: 50rpx;
+  display: flex;
+  margin-top: 50rpx;
+  flex-wrap: wrap;
+  flex-direction:row;
+}
+.choosedAdress{
+  margin-left: 20rpx;
+  margin-top: 20rpx;
+}

+ 1 - 1
project.config.json

@@ -22,7 +22,7 @@
 			"disablePlugins": [],
 			"outputPath": ""
 		},
-		"useCompilerModule": false,
+		"useCompilerModule": true,
 		"userConfirmedUseCompilerModuleSwitch": false
 	},
 	"compileType": "miniprogram",

+ 1 - 84
utils/tools.js

@@ -23,89 +23,6 @@ const request = (url, data = {}, type = 'GET') => {
     });
   });
 };
-const checkSessionAndLogin = () => {
-  return new Promise((resolve, reject) => {
-    wx.checkSession({
-      success() {
-        const sessionKey = wx.getStorageSync('sessionKey');
-        wx.request({
-          url: app.globalData.publicUrl + '/wx/student/inspectSession',
-          method: "post",
-          data: {
-            sessionKey: sessionKey
-          },
-          success: (res) => {
-            if (res.data.msg == 0) {
-              reject('error');
-            } else {
-              resolve(sessionKey);
-            }
-          }
-        })
-      },
-      fail() {
-        reject('error');
-      }
-    });
-  }).then(value => {
-    return new Promise((resolve, reject) => {
-      if (value != '') {
-        resolve({
-          status: 0,
-          sessionKey,
-          type: 'sessionKey',
-          msg: 'checkSession成功获取到sessionKey'
-        });
-      } else {
-        throw 1;
-      }
-    });
-  }).catch(reason => {
-    return new Promise((resolve, reject) => {
-      wx.login({
-        success(res) {
-          if (res.code) {
-            resolve({
-              status: 0,
-              data: res.code,
-              type: 'code',
-              msg: '成功获取到code'
-            });
-          } else {
-            reject({
-              status: 1,
-              msg: '获取sessionKey失败'
-            });
-          }
-        }
-      });
-    });
-  }).then(
-    value => {
-      return new Promise(async (resolve, reject) => {
-        if (value.type == 'code') {
-          const url = '/wx/user/wx7e7a46e129d6cd0f/login';
-          const {
-            data
-          } = await request(url, {
-            code: value.data
-          }, 'GET');
-          wx.setStorageSync('sessionKey', data.sessionKey);
-          resolve(data.sessionKey);
-        } else {
-          resolve(value);
-        }
-      });
-    }
-  );
-};
-// const scalarArrayEquals = function (array1, array2) {
-//   return array1.length == array2.length && array1.every(function (v, i) {
-//     return v === array2[i]
-//   });
-// }
 module.exports = {
-  request,
-  checkSessionAndLogin
-  // scalarArrayEquals
+  request
 }

+ 0 - 1
utils/util.js

@@ -1,5 +1,4 @@
 const globalData = {
-
   publicUrl: 'http://info.windd.cn:8080/test',
   //publicUrl: 'http://10.16.4.12:7001',
   //publicUrl: 'http://10.16.4.8:7001',