ssfg 4 years ago
parent
commit
aca9e2e520

BIN
images/mz/scan.png


BIN
images/mz/upload.png


+ 463 - 13
pages/collectInfo/collectInfo.js

@@ -1,6 +1,7 @@
 Page({
   data: {
     currentIndex: 0,
+    showBj:true,
     src1: '../../images/mz/5.png',
     src2: '../../images/mz/1.png',
     src3: '../../images/mz/6.png',
@@ -51,6 +52,9 @@ Page({
     disabilityAyy: [
       "视力残疾", "听力残疾", "言语残疾", "肢体残疾", "智力残疾", "精神残疾", "多重残疾"
     ],
+    sickType: [
+      "重大器官类疾病", "心脑血管类疾病", "神经与代谢类疾病", "肢体与病毒类疾病", "恶性肿瘤"
+    ],
     disableLeval: ["一级", "二级", "三级", "四级"],
     ableStatus: ["完全自理", "半失能(部分自理)", "完全失能"],
     moneyStatus: ["建档立卡贫困户", "一般家庭", "低保", "特困供养人员"],
@@ -59,7 +63,84 @@ Page({
     familyHelpArr: [
       "低保", "建档立卡贫困户", "医疗救助", "临时救助", "老年人福利津贴", "残疾人两项补贴(或一项补贴)", "其他救助"
     ],
-    loneArr:["是","否"],
+    loneArr: ["是", "否"],
+    liveStatus: [{
+      name: "无人陪伴居住",
+      disabled: false,
+      checked: false
+    }, {
+      name: "配偶",
+      disabled: false,
+      checked: false
+    }, {
+      name: "近亲属",
+      disabled: false,
+      checked: false
+    }, {
+      name: "未成年孙子女",
+      disabled: false,
+      checked: false
+    }, {
+      name: "其他情形",
+      disabled: false,
+      checked: false
+    }],
+    oftenMan: [{
+      name: "无人照料",
+      disabled: false,
+      checked: false
+    }, {
+      name: "近亲属",
+      disabled: false,
+      checked: false
+    }, {
+      name: "配偶",
+      disabled: false,
+      checked: false
+    }, {
+      name: "邻里互助",
+      disabled: false,
+      checked: false
+    }, {
+      name: "购买养老服务",
+      disabled: false,
+      checked: false
+    }, {
+      name: "其他人员",
+      disabled: false,
+      checked: false
+    }],
+    lookafterSex: ["男", "女"],
+    loveRequire: ["生活照料", "生产帮助", "精神慰藉", "医疗保健", "权益维护", "安全监护", "文化娱乐", "紧急救助", "其它"],
+    oldType: [{
+      name: "农村留守老年人",
+      disable: false,
+      checked: false
+    }, {
+      name: "分散供养特困老年人",
+      disable: false,
+      checked: false
+    }, {
+      name: "计划生育特殊家庭老人",
+      disable: false,
+      checked: false
+    }, {
+      name: "空巢老年人",
+      disable: false,
+      checked: false
+    }, {
+      name: "独居老年人",
+      disable: false,
+      checked: false
+    }, {
+      name: "重残老年人",
+      disable: false,
+      checked: false
+    }, {
+      name: "高龄老年人",
+      disable: false,
+      checked: false
+    }],
     // tab2
     childNums: [
       '0个', '1个', '2个', '3个', '3个以上'
@@ -105,6 +186,11 @@ Page({
       currentIndex: index
     })
   },
+  sure(){
+    this.setData({
+      showBj:false
+    })
+  },
   // 删除上方名字
   deleteName(e) {
     let index = e.currentTarget.dataset.index
@@ -187,10 +273,8 @@ Page({
     let rev1 = "healthAyy[1].checked";
     let rev2 = "healthAyy[2].checked";
     let rev3 = "healthAyy[3].checked";
-
     if (index >= 0) {
       this.setData({
-        // oldHealth2: false,
         [revise1]: true,
         [revise2]: true,
         [revise3]: true,
@@ -198,7 +282,6 @@ Page({
         [rev2]: false,
         [rev3]: false
       })
-      console.log(this.data.healthAyy)
     } else {
       this.setData({
         [revise1]: false,
@@ -213,7 +296,21 @@ Page({
       })
     } else {
       this.setData({
-        oldHealth2: false
+        oldHealth2: false,
+        oldDisableType: false,
+        issickTypeNull: false
+      })
+    }
+    let index2 = e.detail.value.indexOf('患重特大疾病')
+    if (index2 >= 0) {
+      this.setData({
+        isSick: true
+      })
+    } else {
+      this.setData({
+        isSick: false,
+        oldDisableType: false,
+        issickTypeNull: false
       })
     }
   },
@@ -228,6 +325,17 @@ Page({
       })
     }
   },
+  tab1Change10_1: function (e) {
+    if (e.detail.value.length == 0) {
+      this.setData({
+        issickTypeNull: true
+      })
+    } else {
+      this.setData({
+        issickTypeNull: false
+      })
+    }
+  },
   // 残疾等级
   tab2Change11: function (e) {
     this.setData({
@@ -235,9 +343,17 @@ Page({
     })
   },
   tab2Change12: function (e) {
+    console.log(e.detail.value)
     this.setData({
       ableIndex: e.detail.value
     })
+    if(e.detail.value==2){
+      this.setData({oldType: this.data.oldType.concat({
+        name: "失能老人",
+        disable: true,
+        checked: true
+      })})
+    }
   },
   tab2Change13: function (e) {
     this.setData({
@@ -246,6 +362,15 @@ Page({
   },
   tab1Change14: function (e) {
     // moneyOtherQt
+    if (e.detail.value.length == 0) {
+      this.setData({
+        moneyFromOther: true
+      })
+    } else {
+      this.setData({
+        moneyFromOther: false
+      })
+    }
     let index = e.detail.value.indexOf('其它')
     if (index >= 0) {
       this.setData({
@@ -253,16 +378,20 @@ Page({
       })
     } else {
       this.setData({
-        moneyOtherQt: false
+        moneyOtherQt: false,
+        moneyOtherQtnull: false
       })
     }
-    if (e.detail.value.length == 0) {
+
+  },
+  tab1Change14_1: function (e) {
+    if (e.detail.value == null || e.detail.value == '') {
       this.setData({
-        moneyFromOther: true
+        moneyOtherQtnull: true
       })
     } else {
       this.setData({
-        moneyFromOther: false
+        moneyOtherQtnull: false
       })
     }
   },
@@ -288,10 +417,298 @@ Page({
       })
     } else {
       this.setData({
-        familyHelpQt: false
+        familyHelpQt: false,
+        otherhelpQtnull: false
+      })
+    }
+  },
+  tab1Change16_1: function (e) {
+    if (e.detail.value == null || e.detail.value == '') {
+      this.setData({
+        otherhelpQtnull: true
+      })
+    } else {
+      this.setData({
+        otherhelpQtnull: false
+      })
+    }
+  },
+  tab1Change18: function (e) {
+    if (e.detail.value.length == 0) {
+      this.setData({
+        isliveNull: true
+      })
+    } else {
+      this.setData({
+        isliveNull: false
+      })
+    }
+    let index = e.detail.value.indexOf('无人陪伴居住')
+    let index1 = e.detail.value.indexOf('其他情形')
+    let revise1 = "liveStatus[1].disable";
+    let revise2 = "liveStatus[2].disable";
+    let revise3 = "liveStatus[3].disable";
+    let revise4 = "liveStatus[4].disable";
+    let rev1 = "liveStatus[1].checked";
+    let rev2 = "liveStatus[2].checked";
+    let rev3 = "liveStatus[3].checked";
+    let rev4 = "liveStatus[4].checked";
+    if (index >= 0) {
+      this.setData({
+        [revise1]: true,
+        [revise2]: true,
+        [revise3]: true,
+        [revise4]: true,
+        [rev1]: false,
+        [rev2]: false,
+        [rev3]: false,
+        [rev4]: false
+      })
+    } else {
+      this.setData({
+        [revise1]: false,
+        [revise2]: false,
+        [revise3]: false,
+        [revise4]: false
+      })
+    }
+    if (index1 >= 0) {
+      this.setData({
+        isliveQt: true
+      })
+    } else {
+      this.setData({
+        isliveQt: false,
+        isliveQtNull: false
       })
     }
   },
+  tab1Change18_1: function (e) {
+    if (e.detail.value == null || e.detail.value == '') {
+      this.setData({
+        isliveQtNull: true
+      })
+    } else {
+      this.setData({
+        isliveQtNull: false
+      })
+    }
+  },
+  tab1Change19: function (e) {
+    console.log(e.detail.value)
+    if (e.detail.value.length == 0) {
+      this.setData({
+        isoftenManNull: true
+      })
+    } else {
+      this.setData({
+        isoftenManNull: false
+
+      })
+    }
+    let index = e.detail.value.indexOf('无人照料')
+    let index1 = e.detail.value.indexOf('其他人员')
+    let revise1 = "oftenMan[1].disabled";
+    let revise2 = "oftenMan[2].disabled";
+    let revise3 = "oftenMan[3].disabled";
+    let revise4 = "oftenMan[4].disabled";
+    let revise5 = "oftenMan[5].disabled";
+    let rev1 = "oftenMan[1].checked";
+    let rev2 = "oftenMan[2].checked";
+    let rev3 = "oftenMan[3].checked";
+    let rev4 = "oftenMan[4].checked";
+    let rev5 = "oftenMan[5].checked";
+    if (index >= 0) {
+      this.setData({
+        // ofenmanDetail: false,
+        [revise1]: true,
+        [revise2]: true,
+        [revise3]: true,
+        [revise4]: true,
+        [revise5]: true,
+        [rev1]: false,
+        [rev2]: false,
+        [rev3]: false,
+        [rev4]: false,
+        [rev5]: false
+      })
+    } else {
+      this.setData({
+        // ofenmanDetail: true,
+        [revise1]: false,
+        [revise2]: false,
+        [revise3]: false,
+        [revise4]: false,
+        [revise5]: false
+      })
+    }
+    if (index < 0 && e.detail.value.length != 0) {
+      this.setData({
+        ofenmanDetail: true
+      })
+    } else {
+      this.setData({
+        ofenmanDetail: false
+      })
+    }
+    if (index1 >= 0) {
+      this.setData({
+        isoftenManQt: true
+      })
+    } else {
+      this.setData({
+        isoftenManQt: false,
+        isoftenReaNull: false
+      })
+    }
+  },
+  tab1Change20: function (e) {
+    if (e.detail.value == null || e.detail.value == '') {
+      this.setData({
+        isoftenReaNull: true
+      })
+    } else {
+      this.setData({
+        isoftenReaNull: false
+      })
+    }
+  },
+  tab1Change21: function (e) {
+    if (e.detail.value == null || e.detail.value == '') {
+      this.setData({
+        lookAfterName: true
+      })
+    } else {
+      this.setData({
+        lookAfterName: false
+      })
+    }
+  },
+  tab1Change23: function (e) {
+    if (e.detail.value == '' || e.detail.value == null) {
+      this.setData({
+        islookPhoneNull: true
+      })
+    } else {
+      this.setData({
+        islookPhoneNull: false
+      })
+    }
+  },
+  tab1Change24: function (e) {
+    if (e.detail.value == '' || e.detail.value == null) {
+      this.setData({
+        isloveNull: true
+      })
+    } else {
+      this.setData({
+        isloveNull: false
+      })
+    }
+    let index = e.detail.value.indexOf('其它')
+    if (index >= 0) {
+      this.setData({
+        isloveQt: true
+      })
+    } else {
+      this.setData({
+        isloveQt: false,
+        isloveQtNull: false
+      })
+    }
+  },
+  tab1change25: function (e) {
+    if (e.detail.value == '' || e.detail.value == null) {
+      this.setData({
+        isloveQtNull: true
+      })
+    } else {
+      this.setData({
+        isloveQtNull: false,
+      })
+    }
+  },
+  tab1Change26: function (e) {
+    console.log(e)
+    if (e.detail.value == '' || e.detail.value == null) {
+      this.setData({
+        isoldtypeNull: true
+      })
+    } else {
+      this.setData({
+        isoldtypeNull: false,
+      })
+    }
+    let index1 = e.detail.value.indexOf('农村留守老年人')
+    let index2 = e.detail.value.indexOf('分散供养特困老年人')
+    let index3 = e.detail.value.indexOf('计划生育特殊家庭老人')
+    let index4 = e.detail.value.indexOf('空巢老年人')
+    let revise1 = "oldType[0].disable";
+    let revise2 = "oldType[1].disable";
+    let revise3 = "oldType[2].disable";
+    let revise4 = "oldType[3].disable";
+    let rev1 = "oldType[0].checked";
+    let rev2 = "oldType[1].checked";
+    let rev3 = "oldType[2].checked";
+    let rev4 = "oldType[3].checked";
+    if (index1 >= 0) {
+      this.setData({
+        [revise2]: true,
+        [revise3]: true,
+        [revise4]: true
+      })
+      return false;
+    } else {
+      this.setData({
+        [revise2]: false,
+        [revise3]: false,
+        [revise4]: false
+      })
+    }
+    if (index2 >= 0) {
+      this.setData({
+        [revise1]: true,
+        [revise3]: true,
+        [revise4]: true
+      })
+      return false;
+    } else {
+      this.setData({
+        [revise1]: false,
+        [revise3]: false,
+        [revise4]: false
+      })
+    }
+    if (index3 >= 0) {
+      this.setData({
+        [revise1]: true,
+        [revise2]: true,
+        [revise4]: true
+      })
+      return false;
+    } else {
+      this.setData({
+        [revise1]: false,
+        [revise2]: false,
+        [revise4]: false
+      })
+    }
+    if (index4 >= 0) {
+      this.setData({
+        [revise1]: true,
+        [revise2]: true,
+        [revise3]: true
+      })
+      return false;
+    } else {
+      this.setData({
+        [revise1]: false,
+        [revise2]: false,
+        [revise3]: false
+      })
+    }
+
+  },
   // 子女个数
   tab2Change1: function (e) {
     console.log(typeof (e.detail.value))
@@ -314,6 +731,15 @@ Page({
     this.setData({
       syrIndex: e.detail.value
     })
+    if (e.detail.value == 0) {
+      this.setData({
+        isHaveOther: true
+      })
+    } else {
+      this.setData({
+        isHaveOther: false
+      })
+    }
   },
   // 其他赡养人姓名
   tab3Change2: function (e) {
@@ -475,7 +901,8 @@ Page({
       })
     } else {
       this.setData({
-        isVisitways: false
+        isVisitways: false,
+        isVisitwaysnull: false
       })
     }
     const items = this.data.visitWays
@@ -486,8 +913,19 @@ Page({
       visitWays: items
     })
   },
-  // tab4巡访频次状态改变
   tab4Change2(e) {
+    if (e.detail.value == null || e.detail.value == '') {
+      this.setData({
+        isVisitwaysnull: true
+      })
+    }else{
+      this.setData({
+        isVisitwaysnull: false
+      })
+    }
+  },
+  // tab4巡访频次状态改变
+  tab4Change3(e) {
     console.log(e.detail.value)
     if (e.detail.value.length == 0) {
       this.setData({
@@ -504,7 +942,8 @@ Page({
       })
     } else {
       this.setData({
-        isVisittimes: false
+        isVisittimes: false,
+        isVisittimesnull:false
       })
     }
     const items = this.data.visitTimes
@@ -515,6 +954,17 @@ Page({
       visitTimes: items
     })
   },
+  tab4change4(e){
+    if (e.detail.value == null || e.detail.value == '') {
+      this.setData({
+        isVisittimesnull: true
+      })
+    }else{
+      this.setData({
+        isVisittimesnull: false
+      })
+    }
+  },
   formSubmit(e) {
     console.log('form发生了submit事件,携带数据为:', e.detail.value)
   },

+ 156 - 66
pages/collectInfo/collectInfo.wxml

@@ -1,4 +1,14 @@
 <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>
@@ -33,9 +43,18 @@
 					<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">
@@ -99,6 +118,15 @@
 						</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">
@@ -120,7 +148,8 @@
 					</checkbox-group>
 				</view>
 				<view wx:if="{{moneyFromOther}}" class="required">收入来源不能为空哦!</view>
-				<input wx:if="{{moneyOtherQt}}" placeholder="请填写其它收入来源" name="name" class="otherinput" />
+				<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">
@@ -136,8 +165,9 @@
 					</checkbox-group>
 				</view>
 				<view wx:if="{{familyHelp}}" class="required">家庭救助帮扶情况不能为空哦!</view>
-				<input wx:if="{{familyHelpQt}}" placeholder="请填写其它帮扶情况" name="name" class="otherinput" />
-        	<view class="block">
+				<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}}">
@@ -145,9 +175,65 @@
 						</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子女信息 -->
@@ -231,66 +317,68 @@
 						{{othersyrArr[syrIndex]}}
 					</view>
 				</picker>
-				<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 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>最后一次离家时间
-						<picker mode="date" bindchange="tab3Change10" value="{{date}}" fields="month">
-							<view class="picker">
-								{{date}}
-							</view>
-						</picker>
+					<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 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>
 			<!-- 第四个tab寻访联系人信息 -->
 			<view wx:if="{{currentIndex==3}}">
@@ -303,17 +391,19 @@
 					</checkbox-group>
 				</view>
 				<view wx:if="{{isnull1}}" class="required">巡访方式不能为空哦!</view>
-				<input wx:if="{{isVisitways}}" placeholder="请填写其它内容" name="name" class="otherinput" />
+				<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="tab4Change2">
+					<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="请填写其它内容" name="name" class="otherinput" />
+				<input wx:if="{{isVisittimes}}" placeholder="请填写其它内容" bindinput="tab4change4" name="name" class="otherinput" />
+				<view wx:if="{{isVisittimesnull}}" class="required">其它巡访频次不能为空哦!</view>
 			</view>
 		</view>
 	</view>

+ 112 - 12
pages/collectInfo/collectInfo.wxss

@@ -1,7 +1,57 @@
 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;
+}
+.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;
@@ -17,7 +67,24 @@ page {
   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;
@@ -120,6 +187,12 @@ page {
   display: flex;
   white-space: nowrap;
   margin-top: 20rpx;
+  position: relative;
+}
+.addname_box{
+  position: absolute;
+  right: 10rpx;
+  top: 5rpx;
 }
 .singlename {
   background-color: #2087f7;
@@ -154,16 +227,7 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked {
   color: #fff;
 }
 
-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;
-}
 
 input {
   height: 50rpx;
@@ -233,4 +297,40 @@ radio-group label {
   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;
+}
+
+/* 
+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;
+} */

+ 1 - 1
project.config.json

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