浏览代码

0923修改

ssfg 4 年之前
父节点
当前提交
a5233bdac5

+ 121 - 436
pages/collectInfo/collectInfo.js

@@ -4,6 +4,7 @@ var isonShow;
 var isTwoOnshow;
 Page({
   data: {
+    focus:true,
     showAdressBox: false,
     showAdressBox1: false,
     provinceArr: [],
@@ -122,15 +123,6 @@ Page({
       visitCount: '',
       visitCountExt: '', // 频次的其他
     }],
-    // multiArray: [
-    //   [],
-    //   [],
-    //   [],
-    //   [],
-    //   []
-    // ],
-    // multiIndex: [0, 0, 0, 0, 0],
-    // multiIndex1: [0, 0, 0, 0, 0]
     multiIndex: [0, 0, 0, 0, 0]
   },
   // 左侧点击
@@ -891,283 +883,6 @@ Page({
       })
     }
   },
-  // 选择五级地址
-  // chooseAdress() {
-  //   let arr = 'multiArray[0]'
-  //   wx.request({
-  //     url: util.globalData.publicUrl + '/civilregionalism/deptList',
-  //     method: "get",
-  //     header: {
-  //       appletsId: wx.getStorageSync('openId')
-  //     },
-  //     success: (res) => {
-  //       let newdata = [];
-  //       let j;
-  //       res.data.data.forEach(item => {
-  //         newdata.push(item);
-  //       });
-  //       for (var i = 0; i < newdata.length; i++) {
-  //         if (newdata[i].CIVILREGIONALISMNAME == '吉林省') {
-  //           j = i;
-  //         }
-  //       }
-  //       newdata.unshift(newdata[j])
-  //       newdata.splice(j + 1, 1);
-  //       console.log('我走了1')
-  //       this.setData({
-  //         [arr]: newdata,
-  //         adressChangeStatus: true
-  //       })
-  //       this.chooseAdress2();
-  //     }
-  //   })
-  // },
-  // chooseAdress2(fid) {
-  //   let mid;
-  //   if (fid) {
-  //     mid = fid
-  //   } else {
-  //     mid = this.data.multiArray[0][0].CIVILREGIONALISMID
-  //   }
-  //   let arr = 'multiArray[1]'
-  //   let newdata = [];
-  //   wx.request({
-  //     url: util.globalData.publicUrl + '/civilregionalism/deptList',
-  //     method: "get",
-  //     header: {
-  //       appletsId: wx.getStorageSync('openId')
-  //     },
-  //     data: {
-  //       fid: mid
-  //     },
-  //     success: (res) => {
-  //       res.data.data.forEach(item => {
-  //         newdata.push(item)
-  //       });
-  //       console.log('我走了2')
-  //       this.setData({
-  //         [arr]: newdata,
-  //         adressChangeStatus: true
-  //       })
-  //       this.chooseAdress3();
-  //     }
-  //   })
-  // },
-  // chooseAdress3(fid) {
-  //   let mid;
-  //   if (fid) {
-  //     mid = fid
-  //   } else {
-  //     mid = this.data.multiArray[1][0].CIVILREGIONALISMID
-  //   }
-  //   let arr = 'multiArray[2]'
-  //   let newdata = [];
-  //   wx.request({
-  //     url: util.globalData.publicUrl + '/civilregionalism/deptList',
-  //     method: "get",
-  //     header: {
-  //       appletsId: wx.getStorageSync('openId')
-  //     },
-  //     data: {
-  //       fid: mid
-  //     },
-  //     success: (res) => {
-  //       res.data.data.forEach(item => {
-  //         newdata.push(item)
-  //       });
-  //       console.log('我走了3')
-  //       this.setData({
-  //         [arr]: newdata,
-  //         adressChangeStatus: true
-  //       })
-  //       this.chooseAdress4();
-  //     }
-  //   })
-  // },
-  // chooseAdress4(fid) {
-  //   let mid;
-  //   if (fid) {
-  //     mid = fid
-  //   } else {
-  //     mid = this.data.multiArray[2][0].CIVILREGIONALISMID
-  //   }
-  //   let arr = 'multiArray[3]'
-  //   let newdata = [];
-  //   wx.request({
-  //     url: util.globalData.publicUrl + '/civilregionalism/deptList',
-  //     method: "get",
-  //     header: {
-  //       appletsId: wx.getStorageSync('openId')
-  //     },
-  //     data: {
-  //       fid: mid
-  //     },
-  //     success: (res) => {
-  //       res.data.data.forEach(item => {
-  //         newdata.push(item)
-  //       });
-  //       console.log('我走了4')
-  //       this.setData({
-  //         [arr]: newdata,
-  //         adressChangeStatus: true
-  //       })
-  //       this.chooseAdress5();
-  //     }
-  //   })
-  // },
-  // chooseAdress5(fid) {
-  //   let mid;
-  //   if (fid) {
-  //     mid = fid
-  //   } else {
-  //     mid = this.data.multiArray[3][0].CIVILREGIONALISMID
-  //   }
-  //   let arr = 'multiArray[4]'
-  //   let newdata = [];
-  //   wx.request({
-  //     url: util.globalData.publicUrl + '/civilregionalism/deptList',
-  //     method: "get",
-  //     header: {
-  //       appletsId: wx.getStorageSync('openId')
-  //     },
-  //     data: {
-  //       fid: mid
-  //     },
-  //     success: (res) => {
-  //       res.data.data.forEach(item => {
-  //         newdata.push(item)
-  //       });
-  //       console.log('我走了5')
-  //       this.setData({
-  //         [arr]: newdata,
-  //         adressChangeStatus: false
-  //       })
-  //     }
-  //   })
-  // },
-  // // 户籍地址
-  // bindMultiPickerChange: function (e) {
-  //   console.log(this.data.adressChangeStatus)
-  //   if (!this.data.adressChangeStatus) {
-  //     let arr = 'oldInfo[' + this.data.activeIndex + '].chooseAdressArr'
-  //     let province = this.data.multiArray[0][e.detail.value[0]].CIVILREGIONALISMNAME;
-  //     let city = this.data.multiArray[1][e.detail.value[1]].CIVILREGIONALISMNAME;
-  //     let area = this.data.multiArray[2][e.detail.value[2]].CIVILREGIONALISMNAME;
-  //     let town = this.data.multiArray[3][e.detail.value[3]].CIVILREGIONALISMNAME;
-  //     let village = this.data.multiArray[4][e.detail.value[4]].CIVILREGIONALISMNAME;
-  //     let provinceCode = this.data.multiArray[0][e.detail.value[0]].CIVILREGIONALISMCODE;
-  //     let cityCode = this.data.multiArray[1][e.detail.value[1]].CIVILREGIONALISMCODE;
-  //     let areaCode = this.data.multiArray[2][e.detail.value[2]].CIVILREGIONALISMCODE;
-  //     let townCode = this.data.multiArray[3][e.detail.value[3]].CIVILREGIONALISMCODE;
-  //     let villageCode = this.data.multiArray[4][e.detail.value[4]].CIVILREGIONALISMCODE;
-  //     this.setData({
-  //       multiIndex: e.detail.value,
-  //       [arr]: [],
-  //       codeArr: []
-  //     })
-  //     this.data.codeArr.push(provinceCode, cityCode, areaCode, townCode, villageCode)
-  //     this.data.oldInfo[this.data.activeIndex].chooseAdressArr.push(province, city, area, town, village)
-  //     let a = this.data.oldInfo[this.data.activeIndex].chooseAdressArr.join("/");
-  //     let b = this.data.codeArr.join(",")
-  //     this.SubmitOldmanInfo({
-  //       id: this.data.nameArr[this.data.activeIndex]._id,
-  //       nativePlace: a,
-  //       nativePlaceId: b
-  //     })
-  //     this.setData({
-  //       [arr]: this.data.oldInfo[this.data.activeIndex].chooseAdressArr
-  //     })
-  //     if (this.data.oldInfo[this.data.activeIndex].isSameWithAddress[0].checked) {
-  //       let Info = 'oldInfo[' + this.data.activeIndex + '].chooseAdressArr1'
-  //       let Infos = 'oldInfo[' + this.data.activeIndex + '].addressExt'
-  //       this.setData({
-  //         [Info]: this.data.oldInfo[this.data.activeIndex].chooseAdressArr,
-  //         [Infos]: this.data.oldInfo[this.data.activeIndex].nativePlaceExt
-  //       })
-  //       let a = this.data.oldInfo[this.data.activeIndex].chooseAdressArr.join("/");
-  //       let b = this.data.codeArr.join(",")
-  //       this.SubmitOldmanInfo({
-  //         id: this.data.nameArr[this.data.activeIndex]._id,
-  //         address: a,
-  //         addressId: b
-  //       })
-  //     }
-  //   } else {
-  //     // let arr = 'oldInfo[' + this.data.activeIndex + '].chooseAdressArr'
-  //     // this.setData({
-  //     //   [arr]: []
-  //     // })
-  //     wx.showToast({
-  //       title: '户籍地址不匹配,请重新选择',
-  //       icon: 'none',
-  //       duration: 2000,
-  //     })
-  //   }
-  // },
-  // // 五级联动
-  // bindMultiPickerColumnChange: function (e) {
-  //   this.setData({
-  //     adressChangeStatus: true
-  //   })
-  //   if (e.detail.column == 4) {
-  //     this.setData({
-  //       adressChangeStatus: false
-  //     })
-  //   }
-  //   if (e.detail.column == 0) {
-  //     this.chooseAdress2(this.data.multiArray[0][e.detail.value].CIVILREGIONALISMID);
-  //   } else if (e.detail.column == 1) {
-  //     this.chooseAdress3(this.data.multiArray[1][e.detail.value].CIVILREGIONALISMID);
-  //   } else if (e.detail.column == 2) {
-  //     this.chooseAdress4(this.data.multiArray[2][e.detail.value].CIVILREGIONALISMID);
-  //   } else if (e.detail.column == 3) {
-  //     this.chooseAdress5(this.data.multiArray[3][e.detail.value].CIVILREGIONALISMID);
-  //   }
-  // },
-  // //现居地址picker
-  // bindMultiPickerChange1: function (e) {
-  //   console.log(this.data.adressChangeStatus)
-  //   if (!this.data.adressChangeStatus) {
-  //     let arr = 'oldInfo[' + this.data.activeIndex + '].chooseAdressArr1'
-  //     let province = this.data.multiArray[0][e.detail.value[0]].CIVILREGIONALISMNAME;
-  //     let city = this.data.multiArray[1][e.detail.value[1]].CIVILREGIONALISMNAME;
-  //     let area = this.data.multiArray[2][e.detail.value[2]].CIVILREGIONALISMNAME;
-  //     let town = this.data.multiArray[3][e.detail.value[3]].CIVILREGIONALISMNAME;
-  //     let village = this.data.multiArray[4][e.detail.value[4]].CIVILREGIONALISMNAME;
-  //     let provinceCode = this.data.multiArray[0][e.detail.value[0]].CIVILREGIONALISMCODE;
-  //     let cityCode = this.data.multiArray[1][e.detail.value[1]].CIVILREGIONALISMCODE;
-  //     let areaCode = this.data.multiArray[2][e.detail.value[2]].CIVILREGIONALISMCODE;
-  //     let townCode = this.data.multiArray[3][e.detail.value[3]].CIVILREGIONALISMCODE;
-  //     let villageCode = this.data.multiArray[4][e.detail.value[4]].CIVILREGIONALISMCODE;
-  //     this.setData({
-  //       multiIndex1: e.detail.value,
-  //       [arr]: []
-  //     })
-  //     let codeArr = [];
-  //     codeArr.push(provinceCode, cityCode, areaCode, townCode, villageCode)
-  //     this.data.oldInfo[this.data.activeIndex].chooseAdressArr1.push(province, city, area, town, village)
-  //     let a = this.data.oldInfo[this.data.activeIndex].chooseAdressArr1.join("/");
-  //     let b = codeArr.join(",")
-  //     this.SubmitOldmanInfo({
-  //       id: this.data.nameArr[this.data.activeIndex]._id,
-  //       address: a,
-  //       addressId: b
-  //     })
-  //     this.setData({
-  //       [arr]: this.data.oldInfo[this.data.activeIndex].chooseAdressArr1
-  //     })
-  //   } else {
-  //     let arr = 'oldInfo[' + this.data.activeIndex + '].chooseAdressArr1'
-  //     this.setData({
-  //       [arr]: []
-  //     })
-  //     wx.showToast({
-  //       title: '现居地址不匹配,请重新选择',
-  //       icon: 'none',
-  //       duration: 2000,
-  //     })
-  //   }
-  // },
   showAdressShow() {
     this.chooseAdress();
     this.setData({
@@ -1207,25 +922,23 @@ Page({
         this.setData({
           provinceArr: newdata,
         })
-        this.setData({
-          province: this.data.provinceArr[0].CIVILREGIONALISMNAME,
-          provinceCode: this.data.provinceArr[0].CIVILREGIONALISMCODE,
-        })
-        console.log(this.data.province)
         this.chooseAdress2();
+      },
+      fail:()=>{
+        wx.hideLoading()
       }
     })
   },
   chooseAdress2(fid) {
+    wx.showLoading({
+      title: '加载中',
+      mask: true
+    })
     let mid;
     if (fid) {
       mid = fid
-      wx.showLoading({
-        title: '加载中',
-        mask: true
-      })
     } else {
-      mid = this.data.provinceArr[this.data.multiIndex[1]].CIVILREGIONALISMID
+        mid = this.data.provinceArr[this.data.multiIndex[1]].CIVILREGIONALISMID
     }
     let newdata = [];
     wx.request({
@@ -1244,28 +957,30 @@ Page({
         this.setData({
           cityArr: newdata
         })
-        if (!fid) {
-          this.setData({
-            city: this.data.cityArr[0].CIVILREGIONALISMNAME,
-            cityCode: this.data.cityArr[0].CIVILREGIONALISMCODE,
-          })
-          console.log(this.data.city)
-        }
         this.chooseAdress3();
+      },
+      fail:()=>{
+        wx.hideLoading()
       }
     })
   },
+  // 查县区的信息
   chooseAdress3(fid) {
+    wx.showLoading({
+      title: '加载中',
+      mask: true
+    })
     let mid;
-    console.log(this.data.cityArr[this.data.multiIndex[2]].CIVILREGIONALISMID,'我是传入的3 id')
     if (fid) {
       mid = fid
-      wx.showLoading({
-        title: '加载中',
-        mask: true
-      })
     } else {
-      mid = this.data.cityArr[this.data.multiIndex[2]].CIVILREGIONALISMID
+      console.log(this.data.cityArr)
+      console.log(this.data.multiIndex)
+      if(!this.data.cityArr[this.data.multiIndex[2]].CIVILREGIONALISMID){
+        wx.hideLoading()
+        return false
+      }
+      mid = this.data.cityArr[this.data.multiIndex[2]].CIVILREGIONALISMID 
     }
     let newdata = [];
     wx.request({
@@ -1284,47 +999,49 @@ Page({
         this.setData({
           areaArr: newdata
         })
-        if (!fid) {
-          this.setData({
-            area: this.data.areaArr[0].CIVILREGIONALISMNAME,
-            areaCode: this.data.areaArr[0].CIVILREGIONALISMCODE,
-          })
-        }
-        console.log(newdata)
-        console.log(this.data.multiIndex)
         if (newdata.length == 0) {
           wx.hideLoading()
           this.setData({
             province: this.data.provinceArr[this.data.multiIndex[0]].CIVILREGIONALISMNAME,
             city: this.data.cityArr[this.data.multiIndex[1]].CIVILREGIONALISMNAME,
-            area: this.data.areaArr[this.data.multiIndex[2]].CIVILREGIONALISMNAME,
-            town: this.data.townArr[this.data.multiIndex[3]].CIVILREGIONALISMNAME,
-            village: this.data.villageArr[this.data.multiIndex[4]].CIVILREGIONALISMNAME,
+            area: '',
+            town: '',
+            village: '',
             provinceCode: this.data.provinceArr[this.data.multiIndex[0]].CIVILREGIONALISMCODE,
             cityCode: this.data.cityArr[this.data.multiIndex[1]].CIVILREGIONALISMCODE,
-            areaCode: this.data.areaArr[this.data.multiIndex[2]].CIVILREGIONALISMCODE,
-            townCode: this.data.townArr[this.data.multiIndex[3]].CIVILREGIONALISMCODE,
-            villageCode: this.data.villageArr[this.data.multiIndex[4]].CIVILREGIONALISMCODE
+            areaCode:'',
+            townCode: '',
+            villageCode:'',
+            areaArr:[],
+            townArr: [],
+            villageArr: [],
           })
         } else {
           this.chooseAdress4();
         }
+      },
+      fail:()=>{
+        wx.hideLoading()
       }
     })
   },
   // 查镇的信息
   chooseAdress4(fid) {
-    console.log(fid, '我走4了吗')
-    console.log(this.data.areaArr[this.data.multiIndex[3]].CIVILREGIONALISMID,'我是传入的4 id')
+    wx.showLoading({
+      title: '加载中',
+      mask: true
+    })
     let mid;
     if (fid) {
       mid = fid
-      wx.showLoading({
-        title: '加载中',
-        mask: true
-      })
     } else {
-      mid = this.data.areaArr[this.data.multiIndex[3]].CIVILREGIONALISMID
+      console.log(this.data.areaArr)
+      console.log(this.data.multiIndex)
+      if(!this.data.areaArr[this.data.multiIndex[3]].CIVILREGIONALISMID){
+        wx.hideLoading()
+        return false
+      }
+       mid = this.data.areaArr[this.data.multiIndex[3]].CIVILREGIONALISMID
     }
     let newdata = [];
     wx.request({
@@ -1343,14 +1060,6 @@ Page({
         this.setData({
           townArr: newdata
         })
-        if (!fid) {
-          this.setData({
-            town: this.data.townArr[0].CIVILREGIONALISMNAME,
-            townCode: this.data.townArr[0].CIVILREGIONALISMCODE,
-          })
-        }
-        console.log(newdata)
-        console.log(this.data.multiIndex)
         if (newdata.length == 0) {
           wx.hideLoading()
           this.setData({
@@ -1370,16 +1079,24 @@ Page({
         } else {
           this.chooseAdress5();
         }
+      },
+      fail:()=>{
+        wx.hideLoading()
       }
     })
   },
   chooseAdress5(fid) {
     let mid;
-    console.log(this.data.townArr[this.data.multiIndex[4]].CIVILREGIONALISMID,'我是传入的5 id')
     if (fid) {
       mid = fid
     } else {
-      mid = this.data.townArr[this.data.multiIndex[4]].CIVILREGIONALISMID
+      console.log(this.data.townArr)
+      console.log(this.data.multiIndex)
+      if(!this.data.townArr[this.data.multiIndex[4]].CIVILREGIONALISMID){
+        wx.hideLoading()
+        return false
+      }
+        mid = this.data.townArr[this.data.multiIndex[4]].CIVILREGIONALISMID
     }
     let newdata = [];
     wx.request({
@@ -1399,24 +1116,13 @@ Page({
           villageArr: newdata
         })
         if (newdata.length == 0) {
-          wx.hideLoading()
-        }
-        if (!fid) {
-          this.setData({
-            village: this.data.villageArr[0].CIVILREGIONALISMNAME,
-            villageCode: this.data.villageArr[0].CIVILREGIONALISMCODE,
-          })
-        }
-        console.log(this.data.villageArr[this.data.multiIndex[4]],'我是村阿')
-        if (newdata.length == 0) {
-          wx.hideLoading()
           this.setData({
+            villageArr: [],
             province: this.data.provinceArr[this.data.multiIndex[0]].CIVILREGIONALISMNAME,
             city: this.data.cityArr[this.data.multiIndex[1]].CIVILREGIONALISMNAME,
             area: this.data.areaArr[this.data.multiIndex[2]].CIVILREGIONALISMNAME,
             town: this.data.townArr[this.data.multiIndex[3]].CIVILREGIONALISMNAME,
             village: '',
-            villageArr: [],
             provinceCode: this.data.provinceArr[this.data.multiIndex[0]].CIVILREGIONALISMCODE,
             cityCode: this.data.cityArr[this.data.multiIndex[1]].CIVILREGIONALISMCODE,
             areaCode: this.data.areaArr[this.data.multiIndex[2]].CIVILREGIONALISMCODE,
@@ -1438,6 +1144,9 @@ Page({
           })
         }
         wx.hideLoading()
+      },
+      fail:()=>{
+        wx.hideLoading()
       }
     })
   },
@@ -1446,7 +1155,8 @@ Page({
       title: '加载中',
       mask: true
     })
-    console.log(e.detail.value)
+    console.log(e.detail.value,'我是改变的数组')
+    console.log(this.data.multiIndex,'我是上次存的数组')
     if (e.detail.value[0] != this.data.multiIndex[0]) {
       this.chooseAdress2(this.data.provinceArr[e.detail.value[0]].CIVILREGIONALISMID);
     } else if (e.detail.value[1] != this.data.multiIndex[1]) {
@@ -1460,46 +1170,74 @@ Page({
         village:this.data.villageArr[e.detail.value[4]].CIVILREGIONALISMNAME,
         villageCode:this.data.villageArr[e.detail.value[4]].CIVILREGIONALISMCODE
       })
-      wx.hideLoading()
     }
     this.setData({
       multiIndex: e.detail.value
     })
+    wx.hideLoading()
+  },
+  pickSure() {
+    let arr = 'oldInfo[' + this.data.activeIndex + '].chooseAdressArr';
+    let codeArr = [];
+    this.setData({
+      [arr]: []
+    })
+    codeArr.push(this.data.provinceCode, this.data.cityCode, this.data.areaCode, this.data.townCode, this.data.villageCode)
+    this.data.oldInfo[this.data.activeIndex].chooseAdressArr.push(this.data.province, this.data.city, this.data.area, this.data.town, this.data.village)
+    let a = this.data.oldInfo[this.data.activeIndex].chooseAdressArr.join("/");
+    let b = codeArr.join(",")
+    this.SubmitOldmanInfo({
+      id: this.data.nameArr[this.data.activeIndex]._id,
+      nativePlace: a,
+      nativePlaceId: b
+    })
+    this.setData({
+      showAdressBox: false,
+      oldInfo: this.data.oldInfo
+    })
+  },
+  pickEsc() {
+    this.setData({
+      showAdressBox: false
+    })
+  },
+  pickSure1() {
+    console.log('111111111')
+    let arr = 'oldInfo[' + this.data.activeIndex + '].chooseAdressArr1';
+    let codeArr = [];
+    this.setData({
+      [arr]: []
+    })
+    codeArr.push(this.data.provinceCode, this.data.cityCode, this.data.areaCode, this.data.townCode, this.data.villageCode)
+    this.data.oldInfo[this.data.activeIndex].chooseAdressArr1.push(this.data.province, this.data.city, this.data.area, this.data.town, this.data.village)
+    console.log(this.data.oldInfo[this.data.activeIndex].chooseAdressArr1, '00000000000')
+    let a = this.data.oldInfo[this.data.activeIndex].chooseAdressArr1.join("/");
+    let b = codeArr.join(",")
+    this.SubmitOldmanInfo({
+      id: this.data.nameArr[this.data.activeIndex]._id,
+      address: a,
+      addressId: b
+    })
+    this.setData({
+      showAdressBox1: false,
+      oldInfo: this.data.oldInfo
+    })
+  },
+  pickEsc1() {
+    this.setData({
+      showAdressBox1: false
+    })
   },
-  // bindChange1(e) {
-  //   if (e.detail.value[0] != this.data.multiIndex[0]) {
-  //     this.chooseAdress2(this.data.provinceArr[e.detail.value[0]].CIVILREGIONALISMID);
-  //   } else if (e.detail.value[1] != this.data.multiIndex[1]) {
-  //     this.chooseAdress3(this.data.cityArr[e.detail.value[1]].CIVILREGIONALISMID);
-  //   } else if (e.detail.value[2] != this.data.multiIndex[2]) {
-  //     this.chooseAdress4(this.data.areaArr[e.detail.value[2]].CIVILREGIONALISMID);
-  //   } else if (e.detail.value[3] != this.data.multiIndex[3]) {
-  //     this.chooseAdress5(this.data.townArr[e.detail.value[3]].CIVILREGIONALISMID);
-  //   }
-  //   this.setData({
-  //     multiIndex: e.detail.value,
-  //     province: this.data.provinceArr[e.detail.value[0]].CIVILREGIONALISMNAME,
-  //     city: this.data.cityArr[e.detail.value[1]].CIVILREGIONALISMNAME,
-  //     area: this.data.areaArr[e.detail.value[2]].CIVILREGIONALISMNAME,
-  //     town: this.data.townArr[e.detail.value[3]].CIVILREGIONALISMNAME,
-  //     village: this.data.villageArr[e.detail.value[4]].CIVILREGIONALISMNAME,
-  //     provinceCode: this.data.provinceArr[e.detail.value[0]].CIVILREGIONALISMCODE,
-  //     cityCode: this.data.cityArr[e.detail.value[1]].CIVILREGIONALISMCODE,
-  //     areaCode: this.data.areaArr[e.detail.value[2]].CIVILREGIONALISMCODE,
-  //     townCode: this.data.townArr[e.detail.value[3]].CIVILREGIONALISMCODE,
-  //     villageCode: this.data.villageArr[e.detail.value[4]].CIVILREGIONALISMCODE
-  //   })
-  // },
   bindpickstart(e) {
     console.log(e, '滚动开始了')
-    // wx.showLoading({
-    //   title: '加载中',
-    //   mask:true
-    // })
+    wx.showLoading({
+      title: '加载中',
+      mask: true
+    })
   },
   bindpickend(e) {
     console.log(e, '滚动结束了')
-    // wx.hideLoading()
+    wx.hideLoading()
   },
   // 补充户籍地址
   tab1Change6(e) {
@@ -1586,59 +1324,6 @@ Page({
       addressExt: e.detail.value
     })
   },
-  pickSure() {
-    let arr = 'oldInfo[' + this.data.activeIndex + '].chooseAdressArr';
-    let codeArr = [];
-    this.setData({
-      [arr]: []
-    })
-    console.log(this.data.province, this.data.city, this.data.area, this.data.town, this.data.village)
-    codeArr.push(this.data.provinceCode, this.data.cityCode, this.data.areaCode, this.data.townCode, this.data.villageCode)
-    this.data.oldInfo[this.data.activeIndex].chooseAdressArr.push(this.data.province, this.data.city, this.data.area, this.data.town, this.data.village)
-    let a = this.data.oldInfo[this.data.activeIndex].chooseAdressArr.join("/");
-    let b = codeArr.join(",")
-    this.SubmitOldmanInfo({
-      id: this.data.nameArr[this.data.activeIndex]._id,
-      nativePlace: a,
-      nativePlaceId: b
-    })
-    this.setData({
-      showAdressBox: false,
-      oldInfo: this.data.oldInfo
-    })
-  },
-  pickEsc() {
-    this.setData({
-      showAdressBox: false
-    })
-  },
-  pickSure1() {
-    console.log('111111111')
-    let arr = 'oldInfo[' + this.data.activeIndex + '].chooseAdressArr1';
-    let codeArr = [];
-    this.setData({
-      [arr]: []
-    })
-    codeArr.push(this.data.provinceCode, this.data.cityCode, this.data.areaCode, this.data.townCode, this.data.villageCode)
-    this.data.oldInfo[this.data.activeIndex].chooseAdressArr1.push(this.data.province, this.data.city, this.data.area, this.data.town, this.data.village)
-    console.log(this.data.oldInfo[this.data.activeIndex].chooseAdressArr1, '00000000000')
-    let a = this.data.oldInfo[this.data.activeIndex].chooseAdressArr1.join("/");
-    let b = codeArr.join(",")
-    this.SubmitOldmanInfo({
-      id: this.data.nameArr[this.data.activeIndex]._id,
-      address: a,
-      addressId: b
-    })
-    this.setData({
-      showAdressBox1: false,
-      oldInfo: this.data.oldInfo
-    })
-  },
-  pickEsc1() {
-    this.setData({
-      showAdressBox1: false
-    })
-  },
   // 婚姻以及配偶情况
   tab1Change8: function (e) {
     let data = this.data.oldInfo[this.data.activeIndex].oldMarry.map(v => {

+ 34 - 34
pages/collectInfo/collectInfo.wxml

@@ -3,7 +3,7 @@
 	<view class="{{showBj ? 'writeOldmanName':'none'}} " hidden="{{!showBj}}">
 		<view class="   OldmanName_box">
 			<view class="oldmanname">请输入老人姓名</view>
-			<input style="margin-left:50rpx;margin-top:30rpx;border:1px solid #279bff" placeholder-style="color: {{color}}" bindinput="addOldName" value="{{addOldname}}" />
+			<input focus='{{focus}}' style="margin-left:50rpx;margin-top:30rpx;border:1px solid #279bff" placeholder-style="color: {{color}}" bindinput="addOldName" value="{{addOldname}}" />
 			<view class="btn_box">
 				<view class="sure" bindtap="sure">确定</view>
 				<view class="esc" bindtap="qx">取消</view>
@@ -52,7 +52,7 @@
 	<view class="right">
 		<view class="name_box">
 			<view class="name_smallName">
-				<view class="{{activeIndex==index?'unsinglename':'singlename'}}" wx:for="{{nameArr}}" wx:key="{{item}}">
+				<view class="{{activeIndex==index?'unsinglename':'singlename'}}" wx:for="{{nameArr}}" wx:key="name">
 					<view style="line-height:50rpx" data-item="{{item}}" 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>
@@ -72,7 +72,7 @@
 				<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}}">
+						<label wx:for="{{oldInfo[activeIndex].oldSex}}" wx:key="name">
 							<radio disabled="{{oldInfo[activeIndex].status == '3'}}" value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</radio-group>
@@ -102,19 +102,19 @@
 						<view class="page-body">
 							<picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{value}}" bindchange="bindChange" bindpickstart="bindpickstart" bindpickend="bindpickend">
 								<picker-view-column>
-									<view wx:for="{{provinceArr}}" wx:key="{{provinceArr}}" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
+									<view wx:for="{{provinceArr}}" wx:key="CIVILREGIONALISMNAME" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
 								</picker-view-column>
 								<picker-view-column>
-									<view wx:for="{{cityArr}}" wx:key="{{cityArr}}" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
+									<view wx:for="{{cityArr}}" wx:key="CIVILREGIONALISMNAME" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
 								</picker-view-column>
 								<picker-view-column>
-									<view wx:for="{{areaArr}}" wx:key="{{areaArr}}" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
+									<view wx:for="{{areaArr}}" wx:key="CIVILREGIONALISMNAME" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
 								</picker-view-column>
 								<picker-view-column>
-									<view wx:for="{{townArr}}" wx:key="{{townArr}}" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
+									<view wx:for="{{townArr}}" wx:key="CIVILREGIONALISMNAME" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
 								</picker-view-column>
 								<picker-view-column>
-									<view wx:for="{{villageArr}}" wx:key="{{villageArr}}" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
+									<view wx:for="{{villageArr}}" wx:key="CIVILREGIONALISMNAME" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
 								</picker-view-column>
 							</picker-view>
 						</view>
@@ -128,7 +128,7 @@
 					<input bindblur="tab1Change6" placeholder="请填写补充户籍地址" value="{{oldInfo[activeIndex].nativePlaceExt}}" />
 				</view>
 				 <checkbox-group bindchange="tab1change6_1">
-					<label wx:for="{{oldInfo[activeIndex].isSameWithAddress}}" wx:key="{{item.name}}">
+					<label wx:for="{{oldInfo[activeIndex].isSameWithAddress}}" wx:key="name">
 						<checkbox value="{{item.name}}" color="#fff" checked="{{item.checked}}" />{{item.name}}
 					</label>
 				</checkbox-group>
@@ -151,19 +151,19 @@
 						<view class="page-body">
 							<picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{value}}" bindchange="bindChange" bindpickstart="bindpickstart1" bindpickend="bindpickend1">
 								<picker-view-column>
-									<view wx:for="{{provinceArr}}" wx:key="{{provinceArr}}" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
+									<view wx:for="{{provinceArr}}" wx:key="CIVILREGIONALISMNAME" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
 								</picker-view-column>
 								<picker-view-column>
-									<view wx:for="{{cityArr}}" wx:key="{{cityArr}}" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
+									<view wx:for="{{cityArr}}" wx:key="CIVILREGIONALISMNAME" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
 								</picker-view-column>
 								<picker-view-column>
-									<view wx:for="{{areaArr}}" wx:key="{{areaArr}}" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
+									<view wx:for="{{areaArr}}" wx:key="CIVILREGIONALISMNAME" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
 								</picker-view-column>
 								<picker-view-column>
-									<view wx:for="{{townArr}}" wx:key="{{townArr}}" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
+									<view wx:for="{{townArr}}" wx:key="CIVILREGIONALISMNAME" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
 								</picker-view-column>
 								<picker-view-column>
-									<view wx:for="{{villageArr}}" wx:key="{{villageArr}}" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
+									<view wx:for="{{villageArr}}" wx:key="CIVILREGIONALISMNAME" style="line-height: 50px; text-align: center;">{{item.CIVILREGIONALISMNAME}}</view>
 								</picker-view-column>
 							</picker-view>
 						</view>
@@ -173,7 +173,7 @@
 				<view class="block">
 					<view class="name"><text class="red">*</text>婚姻及配偶情况</view>
 					<radio-group bindchange="tab1Change8">
-						<label wx:for="{{oldInfo[activeIndex].oldMarry}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].oldMarry}}" wx:key="name">
 							<radio value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</radio-group>
@@ -188,7 +188,7 @@
 				<view class="block">
 					<view class="name"><text class="red">*</text>健康状况</view>
 					<checkbox-group bindchange="tab1Change9">
-						<label wx:for="{{oldInfo[activeIndex].healthAyy}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].healthAyy}}" wx:key="name">
 							<checkbox value="{{item.name}}" color="#fff" disabled="{{item.disabled}}" checked="{{item.checked}}" />{{item.name}}
 						</label>
 					</checkbox-group>
@@ -198,7 +198,7 @@
 					<view class="block">
 						<view class="name"><text class="red">*</text>残疾类别</view>
 						<checkbox-group bindchange="tab1Change10">
-							<label wx:for="{{oldInfo[activeIndex].disabilityAyy}}" wx:key="{{item.name}}">
+							<label wx:for="{{oldInfo[activeIndex].disabilityAyy}}" wx:key="name">
 								<checkbox value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 							</label>
 						</checkbox-group>
@@ -214,7 +214,7 @@
 				<view class="block" wx:if="{{oldInfo[activeIndex].healthAyy[2].checked}}">
 					<view class="name"><text class="red">*</text>重特大疾病类别</view>
 					<checkbox-group bindchange="tab1Change10_1">
-						<label wx:for="{{oldInfo[activeIndex].sickType}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].sickType}}" wx:key="name">
 							<checkbox value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
@@ -235,7 +235,7 @@
 				<view class="block">
 					<view class="name"><text class="red">*</text>收入来源</view>
 					<checkbox-group bindchange="tab1Change14">
-						<label wx:for="{{oldInfo[activeIndex].moneyFromAyy}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].moneyFromAyy}}" wx:key="name">
 							<checkbox value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
@@ -252,20 +252,20 @@
 				<view class="block">
 					<view class="name"><text class="red">*</text>家庭救助帮扶情况</view>
 					<checkbox-group bindchange="tab1Change16">
-						<label wx:for="{{oldInfo[activeIndex].familyHelpArr}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].familyHelpArr}}" wx:key="name">
 							<checkbox value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
 				</view>
 				<view wx:if="{{familyHelp}}" class="required">家庭救助帮扶情况不能为空哦!</view>
 				<view wx:if="{{oldInfo[activeIndex].familyHelpArr[6].checked}}">
-					<input value="{{oldInfo[activeIndex].rescueStateExt}}" placeholder="请填写其救助情况" bindblur="tab1Change16_1" class="otherinput" />
-					<view wx:if="{{oldInfo[activeIndex].familyHelpArr[6].checked&&otherhelpQtnull}}" class="required">其救助情况不能为空哦!</view>
+					<input value="{{oldInfo[activeIndex].rescueStateExt}}" placeholder="请填写其救助情况" bindblur="tab1Change16_1" class="otherinput" />
+					<view wx:if="{{oldInfo[activeIndex].familyHelpArr[6].checked&&otherhelpQtnull}}" class="required">其救助情况不能为空哦!</view>
 				</view>
 				<view class="block">
 					<view class="name"><text class="red">*</text>是否为失独家庭</view>
 					<radio-group bindchange="tab1Change17">
-						<label wx:for="{{oldInfo[activeIndex].loneArr}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].loneArr}}" wx:key="name">
 							<radio value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</radio-group>
@@ -273,7 +273,7 @@
 				<view class="block">
 					<view class="name"><text class="red">*</text>陪伴居住情况</view>
 					<checkbox-group bindchange="tab1Change18">
-						<label wx:for="{{oldInfo[activeIndex].liveStatus}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].liveStatus}}" wx:key="name">
 							<checkbox value="{{item.name}}" disabled="{{item.disabled}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
@@ -284,15 +284,15 @@
 				<view class="block">
 					<view class="name"><text class="red">*</text>日常生活照料人</view>
 					<checkbox-group bindchange="tab1Change19">
-						<label wx:for="{{oldInfo[activeIndex].oftenMan}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].oftenMan}}" wx:key="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>
 				<view wx:if="{{oldInfo[activeIndex].oftenMan[5].checked}}">
-					<input value="{{oldInfo[activeIndex].lookAfterExt}}" bindblur="tab1Change20" placeholder="请填写人员关系" class="otherinput" />
-					<view wx:if="{{oldInfo[activeIndex].oftenMan[5].checked&&isoftenReaNull}}" class="required">人员关系不能为空哦!</view>
+					<input value="{{oldInfo[activeIndex].lookAfterExt}}" bindblur="tab1Change20" placeholder="请填写其他人员关系" class="otherinput" />
+					<view wx:if="{{oldInfo[activeIndex].oftenMan[5].checked&&isoftenReaNull}}" class="required">其他人员关系不能为空哦!</view>
 				</view>
 				<view wx:if="{{oldInfo[activeIndex].oftenMan[1].checked||oldInfo[activeIndex].oftenMan[2].checked||oldInfo[activeIndex].oftenMan[3].checked||oldInfo[activeIndex].oftenMan[4].checked||oldInfo[activeIndex].oftenMan[5].checked}}">
 					<view class="block"><text class="red">*</text>主要照料人姓名<input value="{{oldInfo[activeIndex].mainLookName}}" bindblur="tab1Change21" /></view>
@@ -300,7 +300,7 @@
 					<view class="block">
 						<view class="name"><text class="red">*</text>主要照料人性别</view>
 						<radio-group bindchange="tab1Change22">
-							<label wx:for="{{oldInfo[activeIndex].mainLookSex}}" wx:key="{{item.name}}">
+							<label wx:for="{{oldInfo[activeIndex].mainLookSex}}" wx:key="name">
 								<radio value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 							</label>
 						</radio-group>
@@ -311,7 +311,7 @@
 				<view class="block">
 					<view class="name"><text class="red">*</text>关爱服务需求</view>
 					<checkbox-group bindchange="tab1Change24">
-						<label wx:for="{{oldInfo[activeIndex].loveRequire}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].loveRequire}}" wx:key="name">
 							<checkbox value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
@@ -322,7 +322,7 @@
 				<view class="block">
 					<view class="name"><text class="red">*</text>老年人类别</view>
 					<checkbox-group bindchange="tab1Change26">
-						<label wx:for="{{oldInfo[activeIndex].oldType}}" wx:key="{{item.name}}">
+						<label wx:for="{{oldInfo[activeIndex].oldType}}" wx:key="name">
 							<checkbox value="{{item.name}}" disabled="{{item.disable}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
@@ -344,7 +344,7 @@
 						{{childInfo[activeIndex].childrenNum}}
 					</view>
 				</picker>
-				<view wx:for="{{childInfo[activeIndex].Info}}" wx:for-index="idx">
+				<view wx:for="{{childInfo[activeIndex].Info}}" wx:for-index="idx" wx:key="Info">
 					<van-divider contentPosition="center">第{{idx+1}}个子女信息</van-divider>
 					<view class="block"><text class="red">*</text>子女姓名<input data-index="{{idx}}" bindblur="tab2Change2" value="{{childInfo[activeIndex].Info[idx].name}}" /></view>
 					<view wx:if="{{childNameNull[idx]}}" class="required">子女姓名不能为空哦!</view>
@@ -414,7 +414,7 @@
 					<view class="block">
 						<view class="name"><text class="red">*</text>其他赡养人性别</view>
 						<radio-group bindchange="tab3Change3">
-							<label wx:for="{{	otherInfo[activeIndex].Info.othersyrSexArr}}" wx:key="{{item}}">
+							<label wx:for="{{	otherInfo[activeIndex].Info.othersyrSexArr}}" wx:key="name">
 								<radio value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 							</label>
 						</radio-group>
@@ -478,7 +478,7 @@
 				<view class="block">
 					<view class="name"><text class="red">*</text>巡访方式</view>
 					<checkbox-group bindchange="tab4Change1">
-						<label wx:for="{{regularsInfos[activeIndex].visitMode}}" wx:key="{{item.name}}">
+						<label wx:for="{{regularsInfos[activeIndex].visitMode}}" wx:key="name">
 							<checkbox value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</checkbox-group>
@@ -489,7 +489,7 @@
 				<view class="block">
 					<view class="name"><text class="red">*</text>巡访频次</view>
 					<radio-group bindchange="tab4Change3">
-						<label wx:for="{{regularsInfos[activeIndex].visitCount}}" wx:key="{{item.name}}">
+						<label wx:for="{{regularsInfos[activeIndex].visitCount}}" wx:key="name">
 							<radio value="{{item.name}}" checked="{{item.checked}}" color="#fff" />{{item.name}}
 						</label>
 					</radio-group>

+ 4 - 19
pages/index/index.js

@@ -121,13 +121,12 @@ Page({
             if(res.data.data.length!=0){
               let result = res.data.data[0].title
               this.data.msgList.push({
-                // url: '',
-                title: result
-              });
-              this.data.msgList.push({
-                // url: '',
                 title: result
               });
+              // this.data.msgList.push({
+              //   // url: '',
+              //   title: result
+              // });
               this.setData({
                 msgList: this.data.msgList
               })
@@ -147,11 +146,6 @@ Page({
             console.log(res);
             if (res.data.data.length == 0) {
               this.data.msgList.push({
-                // url: '',
-                title: '暂无通知'
-              });
-              this.data.msgList.push({
-                // url: '',
                 title: '暂无通知'
               });
               this.setData({
@@ -160,30 +154,21 @@ Page({
             } else {
               let result = res.data.data.title;
               this.data.msgList.push({
-                // url: '',
-                title: result
-              });
-              this.data.msgList.push({
-                // url: '',
                 title: result
               });
               this.setData({
                 msgList: this.data.msgList
               })
             }
-
           }
         }
       })
     }
-
   },
   // onLoad() {
   //   console.log("onloadonloadonloadonloadonloadonloadonloadonloadonloadonloadonloadonloadonloadonloadonloadonloadonloadonloadonload");
   //   this.depts();
   // },
-
-  
   onShow() {
     console.log("onshowssshshshhshshshss");
     this.depts();

+ 2 - 2
pages/index/index.wxml

@@ -1,7 +1,7 @@
 <view class="home">
 	<view class="top">
 		<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
-			<block wx:key="unique" wx:for="{{backgrounds}}" wx:for-item="item">
+			<block wx:key="pic" wx:for="{{backgrounds}}" wx:for-item="item">
 				<swiper-item>
 					<image src="{{item.pic}}"></image>
 				</swiper-item>
@@ -12,7 +12,7 @@
 		<image src="/images/tongzhi.png" style="width: 80rpx; height: 31rpx;"></image>
 		<!-- <view class="bck">今日探访老人可得双倍积分</view> -->
 		<swiper class="swiper_container" vertical="true" autoplay="true" circular="true" interval="3000">
-			<block wx:for="{{msgList}}">
+			<block wx:key="title" wx:for="{{msgList}}">
 				<swiper-item>
 					<view class="swiper_item">{{item.title}}</view>
 				</swiper-item>

+ 6 - 6
pages/visitandinfo/visitandinfo.wxml

@@ -26,13 +26,13 @@
 					</van-tabs>
 					<view class="zizi">共<text class="number"> {{listData.length}} </text>条采集记录</view>
 					<scroll-view class="center" scroll-y="true" style='height: {{scrollHeight + "px"}}'>
-						<view class="tr" style=" border-bottom: 1px solid #dadada; padding-bottom: 15rpx;">
-							<view class="td " style="border-bottom: unset; width: 38%; ">
+						<view class="tr" style=" border-bottom: 1px solid #dadada;width:670rpx;font-size:30rpx">
+							<view class="td " style="border-bottom: unset; width:78rpx;">
 								<checkbox checked="{{isAllTrue}}" bindtap="selectall" />
 							</view>
-							<view class="td" style="border-bottom: unset;">姓名</view>
-							<view class="td " style="border-bottom: unset;  margin-left: 170rpx;">保存时间</view>
-							<view class="td" style="border-bottom: unset;margin-left: 30rpx; ">状态</view>
+							<view style="border-bottom: unset;width:290rpx;text-align:left">姓名</view>
+							<view style="border-bottom: unset;width:180rpx;text-align:left">保存时间</view>
+							<view style="border-bottom: unset;width:120rpx;">状态</view>
 						</view>
 						<checkbox-group bindchange="checkboxChange">
 							<view class="tr" wx:for="{{listData}}" wx:key="">
@@ -40,7 +40,7 @@
 									<checkbox disabled="{{item.status == '3'}}" value="{{item._id}}" checked="{{item.checked}}" />
 								</view>
 								<view class="td idcard" value="{{item.text}}" bindtap="cellClick" data-infos='{{item}}'>
-									<view>{{item.name}}</view>
+									<view style="text-align:center">{{item.name}}</view>
 									<view wx:if='{{item.idNumber}}' class="oldzi">{{item.idNumber}}</view>
 									<!-- <view wx:if='{{item.idNumber}}' class="oldzi">({{subqian.subqian(item.idNumber)}}</view> -->
 									<!-- <view wx:if='{{item.idNumber}}' class="oldzi">{{subhou.subhou(item.idNumber)}})</view> -->

+ 3 - 2
pages/visitandinfo/visitandinfo.wxss

@@ -23,6 +23,8 @@
   color: #2892ff;
   background-color: white;
   border: none;
+  font-size: 35rpx;
+  font-weight: 800;
 }
 .tabs-item {
   width: 50%;
@@ -61,8 +63,6 @@
 }
 .td {
   background-color: #fff;
-  /* text-align: center;
-  justify-content: center; */
   width: 80%;
   border-bottom: 1px solid #dadada;
   padding: 10rpx 0;
@@ -133,6 +133,7 @@ checkbox .wx-checkbox-input {
   display: flex;
   flex-wrap: wrap;
   width: 100%;
+  text-align: center;
 }
 
 .oldzi {