ssfg 4 роки тому
батько
коміт
280010e093

+ 4 - 0
app.json

@@ -1,6 +1,10 @@
 {
   "pages": [
     "pages/index/index",
+    "pages/visitList/visitList",
+    "pages/bindOld/bindOld",
+    "pages/visitListInfo/visitListInfo",
+    "pages/visitFind/visitFind",
     "pages/love/love",
     "pages/visitandinfo/visitandinfo",
     "pages/collectInfo/collectInfo",

BIN
images/findbj.png


BIN
images/nodata.png


BIN
images/nodata1.png


BIN
images/oldbj.png


+ 70 - 0
pages/bindOld/bindOld.js

@@ -0,0 +1,70 @@
+// pages/bindOld/bindOld.js
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+  go(){
+    wx.navigateTo({
+      url: '/pages/visitList/visitList',
+    })
+  },
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: function (options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload: function () {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh: function () {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom: function () {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage: function () {
+
+  }
+})

+ 4 - 0
pages/bindOld/bindOld.json

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText": "绑定老人信息"
+}

+ 19 - 0
pages/bindOld/bindOld.wxml

@@ -0,0 +1,19 @@
+<view>
+	<image src="../../images/oldbj.png" class="img"></image>
+	<view class="b1">
+		<van-row style='text-align:center;color:rgba(144,147,153)'>
+			<van-col span="6">老人姓名</van-col>
+			<van-col span="12">老人身份证</van-col>
+			<van-col span="6"></van-col>
+		</van-row>
+	</view>
+	<view class="b1">
+		<van-row style='text-align:center;color:rgba(102,177,255)'>
+			<van-col span="6">啦啦啦</van-col>
+			<van-col span="12">220323199404083643</van-col>
+			<van-col span="6" style='font-weight:600' bindtap='go'>点击查看</van-col>
+		</van-row>
+	</view>
+	<van-button type="info" block custom-style="width:600rpx;height:65rpx;border-radius:10rpx;font-size:25rpx;position:fixed;bottom:100rpx;left:75rpx" bindtap="nobindNumber">解除绑定</van-button>
+
+</view>

+ 14 - 0
pages/bindOld/bindOld.wxss

@@ -0,0 +1,14 @@
+/* pages/visitFind/visitFind.wxss */
+.img {
+  width: 750rpx;
+  height: 458rpx;
+}
+
+.b1 {
+  width: 700rpx;
+  margin-left: 25rpx;
+  font-size: 30rpx;
+  margin-top: 30rpx;
+  line-height: 70rpx;
+  border-bottom: 1px solid #c0c4cc;
+}

+ 7 - 3
pages/collectInfo/collectInfo.js

@@ -728,7 +728,6 @@ Page({
                   filePath: res.tempFilePaths[0],
                   encoding: 'base64',
                   success: res1 => {
-                  
                     let img = 'data:image/png;base64,' + res1.data
                     wx.request({
                       url: 'https://aip.baidubce.com/rest/2.0/ocr/v1/idcard?access_token=' + token,
@@ -760,7 +759,7 @@ Page({
                             if (e.data.words_result['公民身份号码'].words.substring(10, 12) < month || e.data.words_result['公民身份号码'].words.substring(10, 12) == month && e.data.words_result['公民身份号码'].words.substring(12, 14) <= day) {
                               age++;
                             }
-                            if (age >= 60) {
+                            if (age >= 10) {
                               let idNumber = 'oldInfo[' + _this.data.activeIndex + '].idNumber'
                               let name = 'oldInfo[' + _this.data.activeIndex + '].name'
                               let nation = 'oldInfo[' + _this.data.activeIndex + '].nation'
@@ -2097,7 +2096,7 @@ Page({
               [imgPath]: datas.data,
               [isHavePhoto]: true,
             })
-            that.getSelfLocation();
+            // that.getSelfLocation();
             that.SubmitOldmanInfo({
               id: that.data.nameArr[that.data.activeIndex]._id,
               photo: datas.data,
@@ -3881,6 +3880,7 @@ Page({
               id: that.data.nameArr[that.data.activeIndex]._id,
               photoAndLocation: gps
             })
+            that.goPhoto();
           },
           fail: function (res) {
             console.log('获取当前地址失败');
@@ -3889,6 +3889,10 @@ Page({
       },
       fail: function () {
         console.log('获取失败了打开设置')
+        wx.showModal({
+          showCancel: false,
+          content: '定位权限获取失败'
+        })
         // wx.openSetting({
         //   success: function (osrs) {
         //     wx.getUserInfo({

+ 9 - 4
pages/collectInfo/collectInfo.wxml

@@ -337,16 +337,21 @@
 				</view>
 				<view wx:if="{{isoldtypeNull}}" class="required">老年人类别不能为空哦!</view>
 				<view class="name"><text class="red">*</text>老人照片</view>
-				<view class="scan" wx:if="{{oldInfo[activeIndex].imgPath == ''}}" style="margin-top:20rpx" bindtap="goPhoto">
+				<view class="scan" wx:if="{{oldInfo[activeIndex].imgPath == ''}}" style="margin-top:20rpx" bindtap="getSelfLocation">
 					<image src="../../images/mz/upload.png" style="width:40rpx;height:40rpx;margin-top:5rpx;margin-left:30rpx"></image><text >请上传老人含面部照片</text>
 				</view>
 				<view wx:if="{{oldInfo[activeIndex].imgPath}}" class="boxssss">
 					<image class="image" style="width:200rpx;height:200rpx" src="{{urls.url(oldInfo[activeIndex].imgPath)}}" mode='scaleToFill' bindtap="previewImg"></image>
 					<van-icon size='23' name="clear" class="close" data-index="{{index}}" bindtap="closeImage" data-activeIndex='{{activeIndex}}' />
 				</view>
-				<view class="name"><text class="red">*</text>所处地理位置(上传照片自带位置)</view>
-				<view class="{{oldInfo[activeIndex].photoAndLocation?'picker1':'picker11'}}" >
-				{{oldInfo[activeIndex].photoAndLocation}}
+				<view class="name" style="display:flex"><text class="red">*</text>所处地理位置 
+				<!-- <view class="setting"><button bindtap="openSetting" hidden="{{setTrue}}">(点我授予位置权限)</button></view> -->
+				</view>
+				<!-- <view class="setting"> -->
+					<!-- <button bindtap="openSetting">打开设置页</button></view> -->
+				<!-- hidden="{{setTrue}}" -->
+				<view class="{{oldInfo[activeIndex].photoAndLocation?'picker1':'picker11'}}">
+					{{oldInfo[activeIndex].photoAndLocation}}
 				</view>
 			</view>
 			<!-- 第二个tab子女信息 -->

+ 42 - 11
pages/collectInfo/collectInfo.wxss

@@ -319,8 +319,8 @@ page {
 }
 
 checkbox .wx-checkbox-input {
-  width: 30rpx;
-  height: 30rpx;
+  width: 40rpx;
+  height: 40rpx;
 }
 
 checkbox .wx-checkbox-input.wx-checkbox-input-checked {
@@ -339,27 +339,22 @@ input {
   text-indent: 20rpx;
 
 }
-
 .huiColor {
   background-color: #F5F7FA !important;
 }
-
 .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;
@@ -419,15 +414,38 @@ radio-group label {
   margin-top: 30rpx;
   text-align: center;
 }
-radio .wx-radio-input {
-  width: 25rpx;
-  height: 25rpx;
+/* radio .wx-radio-input {
+  width: 40rpx;
+  height: 40rpx;
 }
 radio .wx-radio-input.wx-radio-input-checked::before {
   background-color: #2087f7;
   color: #fff;
-  border-radius: 25rpx;
+  border-radius: 40rpx!important;
+} */
+radio .wx-radio-input{ 
+  height: 40rpx; 
+  width: 40rpx;
+  border-radius: 50%;
+  background: transparent;
+}
+/* 选中后的 背景样式 */
+radio .wx-radio-input.wx-radio-input-checked{
+ border: none;
+}
+/* 选中后的 对勾样式 */
+radio .wx-radio-input.wx-radio-input-checked::before{
+ border-radius: 50%;
+ width: 46rpx; 
+ height: 46rpx;
+ line-height: 46rpx;
+ text-align: center;
+ font-size:46rpx; 
+ color:#fff;
+ background: #2087f7;
+ border: 6rpx solid #2087f7;
 }
+
 .close_img {
   width: 30rpx;
   height: 30rpx;
@@ -499,4 +517,17 @@ radio .wx-radio-input.wx-radio-input-checked::before {
   bottom: 260px;
   left: 20px;
   font-size: 35rpx;
+}
+.setting{
+  width: 250rpx;
+}
+.setting button{
+  padding: 0;
+}
+.setting button:not([size='mini']){
+  background-color: #fff;
+  font-size: 25rpx;
+  color: #2087f7;
+  width: 100%;
+  /* width: 180rpx; */
 }

+ 15 - 10
pages/index/index.js

@@ -53,15 +53,18 @@ Page({
     //     url: '/pages/collectInfo/collectInfo',
     //   })
     // }
-    if (wx.getStorageSync('user') == '') {
-      wx.redirectTo({
-        url: '/pages/login/login',
-      })
-    } else {
-      wx.switchTab({
-        url: '/pages/collectInfo/collectInfo',
-      })
-    }
+    // if (wx.getStorageSync('user') == '') {
+    //   wx.redirectTo({
+    //     url: '/pages/login/login',
+    //   })
+    // } else {
+      // wx.switchTab({
+      //   url: '/pages/collectInfo/collectInfo',
+      // })
+    // }
+    wx.navigateTo({
+      url: '/pages/userBook/userBook',
+    })
   },
   goXunfang() {
     // if (wx.getStorageSync('user') == '') {
@@ -92,7 +95,9 @@ Page({
     //     url: '/pages/visitandinfo/visitandinfo',
     //   })
     // }
-    
+    wx.navigateTo({
+      url: '/pages/visitFind/visitFind',
+    })
   },
   goTongzhi() {
     if (wx.getStorageSync('user') == '') {

+ 5 - 5
pages/index/index.wxml

@@ -48,8 +48,8 @@
 		<view class="top4-box" bindtap="goCollect">
 			<image src="/images/indexicon4.png" style="width: 120rpx;height: 120rpx;margin-top: 10rpx;"></image>
 			<view class="top4-box1">
-				<view class="top4-title">信息采集</view>
-				<view class="top4-smalltitle">信息采集</view>
+				<view class="top4-title">用户手册</view>
+				<view class="top4-smalltitle">使用教程</view>
 			</view>
 		</view>
 		<view class="top4-box" bindtap="goXunfang">
@@ -58,7 +58,7 @@
 				<!-- <view class="top4-title">巡访信息</view>
 				<view class="top4-smalltitle">巡访信息</view> -->
 				<view class="top4-title">巡访查询</view>
-				<view class="top4-smalltitle">巡访查询</view>
+				<view class="top4-smalltitle">查询绑定</view>
 			</view>
 		</view>
 	</view>
@@ -67,14 +67,14 @@
 			<image src="/images/indexicon6.png" style="width: 120rpx;height: 120rpx;margin-top: 10rpx;"></image>
 			<view class="top4-box1">
 				<view class="top4-title">我的排名</view>
-				<view class="top4-smalltitle">我的排名</view>
+				<view class="top4-smalltitle">巡访员排名</view>
 			</view>
 		</view>
 		<view class="top4-box" bindtap="goSaoMa">
 			<image src="/images/indexicon7.png" style="width: 120rpx;height: 120rpx;margin-top: 10rpx;"></image>
 			<view class="top4-box1">
 				<view class="top4-title">扫一扫</view>
-				<view class="top4-smalltitle">扫一扫</view>
+				<view class="top4-smalltitle">巡访老人</view>
 			</view>
 		</view>
 	</view>

+ 1 - 1
pages/paiming/paiming.wxml

@@ -11,7 +11,7 @@
 				</view>
 			</view>
 			<view class="wenzi">累计积分</view>
-			<view class="btn">当前排名<text class="shuzi">{{list.order}}</text>名</view>
+			<view class="btn">当前全省排名<text class="shuzi">{{list.order}}</text>名</view>
 		</view>
 		<view class="white-box">
 			<van-tabs active="{{ active }}" bind:change="onChange" color="#2087F7">

+ 2 - 2
pages/personInfo/personInfo.wxml

@@ -34,13 +34,13 @@
 		</view>
 		<view class="jiantou">></view>
 	</view>
-		<view class="title" bindtap="userBook">
+		<!-- <view class="title" bindtap="userBook">
 		<view class="small-title" >
 			<image src="/images/userbook.png" style="width: 60rpx; height: 60rpx;"></image>
 			<view class="small-zi">用户手册</view>
 		</view>
 		<view class="jiantou">></view>
-	</view>
+	</view> -->
 	<view class="title" bindtap="tuichu">
 		<view class="small-title" >
 			<image src="/images/person4.png" style="width: 60rpx; height: 60rpx;"></image>

+ 1 - 1
pages/userBook/userBook.json

@@ -1,4 +1,4 @@
 {
   "usingComponents": {},
-  "navigationBarTitleText":"用户手册"
+  "navigationBarTitleText":""
 }

+ 20 - 7
pages/userBook/userBook.wxml

@@ -1,4 +1,5 @@
 <view style="margin-bottom:100rpx">
+	<van-divider contentPosition="center">巡访员使用手册</van-divider>
 	<view class="block">
 		<view class="num">
 			Q1
@@ -53,17 +54,18 @@
 			采集老人信息流程
 		</view>
 	</view>
-	<view class="hd">①点击首页->信息采集,即可跳转采集页,或者点击页面下方采集,也可跳转采集页。</view>
-	<view class="hd">②请认真填写信息,随填随记。如果此次信息未填写完全,误操作退出该页面,在工作日志->采集记录中可再次找到该老人,点击继续填写其他信息即可。</view>
-	<view class="hd">③因为采集老人信息要确定您的地理位置,所以请确保您的手机定位设置对小程序开放。否则可能因为缺少定位信息导致不能审核。</view>
-	<view class="hd">②首先输入要采集的老人姓名,然后按内容填写老人的信息、子女信息、其他赡养义务人信息、寻访联系人信息。每一项完成之后左上角的标识会变成绿色,全部填写完成等待管理员审核即可。</view>
-	<view class="hd">③如添加同一家庭的老人,点击第一位老人姓名右方的加号然后继续填写所有信息。点击✖可删除当前老人。</view>
+	<view class="hd">①点击小程序页面下方采集,跳转采集页。</view>
+	<view class="hd">②请认真填写信息,随填随记。如果此次信息未填写完全,退出该页面,在工作日志->采集记录中可再次找到该老人,点击继续填写其他信息即可。</view>
+	<view class="hd">③因为采集老人信息要确定您的地理位置,所以在上传老人照片时请点击同意您的手机定位设置对小程序开放。否则可能因为缺少定位信息导致不能审核。如果不小心点击拒绝,操作步骤为点击小程序右上角三个点->设置->打开位置权限。</view>
+	<view class="hd">④首先输入要采集的老人姓名,然后按内容填写老人的信息、子女信息、其他赡养义务人信息、寻访联系人信息。每一项完成之后左上角的标识会变成绿色,全部填写完成等待管理员审核即可。</view>
+	<view class="hd">⑤如添加同一家庭的老人,点击第一位老人姓名右方的加号然后继续填写所有信息。点击✖可删除当前老人。</view>
+		<view class="hd">⑥采集一个老人积分+5</view>
 	<view style="display:flex;margin-top: 20rpx;margin-bottom: 20rpx;">
 		<image src="../../images/user_inputname.png" class="img4"></image>
 		<image src="../../images/user_info.png" class="img4"></image>
 	</view>
 	<view class="block">
-		<view class="num"> 
+		<view class="num">
 			Q6
 		</view>
 		<view class="question">
@@ -86,6 +88,7 @@
 	<view class="hd">③因为巡访老人要确定您的地理位置,所以请确保您的手机定位设置对小程序开放。否则可能因为缺少信息导致巡访失败。</view>
 	<view class="hd">④您的位置必须和在采集老人时的定位信息保持一致(一定范围内)</view>
 	<view class="hd">⑤您上传的老人照片必须是真实且实时的,和采集时的老人是同一个老人。</view>
+	<view class="hd">⑥巡访一个老人积分+1</view>
 	<image src="../../images/user_old.png" class="img5"></image>
 	<view class="block">
 		<view class="num">
@@ -97,5 +100,15 @@
 	</view>
 	<view class="hd">①点击工作日志->巡访记录</view>
 	<view class="hd">②可查看到我的全部巡访记录。点击每条记录都可查看老人的巡访详情。</view>
-	<!-- <image src="../../images/user_visit.png" class="img6"></image> -->
+		<view class="block">
+		<view class="num">
+			Q9
+		</view>
+		<view class="question">
+			巡访员排名查看
+		</view>
+	</view>
+	<view class="hd">①点击首页->我的排名</view>
+	<view class="hd">②您当前所在的</view>
+	<van-divider contentPosition="center">赡养人使用手册</van-divider>
 </view>

+ 112 - 0
pages/visitFind/visitFind.js

@@ -0,0 +1,112 @@
+// pages/visitFind/visitFind.js
+Page({
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    idNumber: null
+  },
+  getInputValue(e) {
+    this.setData({
+      idNumber: e.detail.value
+    })
+  },
+  // 表单校验老人身份证号
+  bindNumber() {
+    console.log(this.data.idNumber)
+    if (!this.data.idNumber) {
+      this.setData({
+        numberNull: true
+      })
+    } else {
+      this.setData({
+        numberNull: false
+      })
+      if (!(/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.data.idNumber)) && this.data.idNumber.length != 18) {
+        this.setData({
+          eight: true
+        })
+      } else {
+        this.setData({
+          eight: false
+        })
+        var myDate = new Date();
+        var month = myDate.getMonth() + 1;
+        var day = myDate.getDate();
+        var age = myDate.getFullYear() - this.data.idNumber.substring(6, 10) - 1;
+        if (this.data.idNumber.substring(10, 12) < month || this.data.idNumber.substring(10, 12) == month && this.data.idNumber.substring(12, 14) <= day) {
+          age++;
+        }
+        console.log(age, '我是身份证的年龄')
+        if (age < 60) {
+          this.setData({
+            wrong: true
+          })
+        } else {
+          this.setData({
+            wrong: false
+          })
+          wx.navigateTo({
+            url: '/pages/bindOld/bindOld',
+          })
+        }
+      }
+    }
+
+  },
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: function (options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload: function () {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh: function () {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom: function () {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage: function () {
+
+  }
+})

+ 4 - 0
pages/visitFind/visitFind.json

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText":"巡访查询"
+}

+ 13 - 0
pages/visitFind/visitFind.wxml

@@ -0,0 +1,13 @@
+<view>
+	<image src="../../images/findbj.png" class="img"></image>
+	<view class="t1">民政巡访远程查询系统</view>
+	<view class="t2">赡养人查询入口</view>
+  <view class="b1">
+  <view><van-icon name="user-o" color="#c0c4cc" size="30rpx" style="margin-top:15rpx;margin-left:20rpx"/></view>
+  <input placeholder="请输入要绑定的老人身份证号" bindinput='getInputValue' value="{{idNumber}}" style="margin-left:20rpx;width:520rpx;height:65rpx;font-size:30rpx" placeholder-style="font-size:25rpx;color:#c0c4cc"></input>
+  </view>
+  <view class='required' wx:if='{{numberNull}}'>身份证号不能为空哦</view>
+  <view class='required' wx:if='{{eight}}'>请输入18位符合规范的身份证号</view>
+  <view class='required' wx:if='{{wrong}}'>不得输入低于60岁的老人身份证号</view>
+  <van-button type="info" block custom-style="width:600rpx;height:65rpx;margin-top:30rpx;border-radius:10rpx;font-size:25rpx" bindtap="bindNumber">绑定账号</van-button>
+</view>

+ 35 - 0
pages/visitFind/visitFind.wxss

@@ -0,0 +1,35 @@
+/* pages/visitFind/visitFind.wxss */
+.img {
+  width: 750rpx;
+  height: 458rpx;
+}
+
+.t1 {
+  text-align: center;
+  font-size: 35rpx;
+  /* font-weight: 550; */
+  margin-top: 60rpx;
+  letter-spacing: 2rpx;
+}
+
+.t2 {
+  text-align: center;
+  font-size: 30rpx;
+  margin-top: 10rpx;
+}
+
+.b1 {
+  width: 600rpx;
+  height: 65rpx;
+  margin-left: 75rpx;
+  border: 1px solid #c0c4cc;
+  margin-top: 70rpx;
+  display: flex;
+  border-radius: 10rpx;
+}
+.required {
+  color: red;
+  margin-left: 75rpx;
+  margin-top: 10rpx;
+  font-size: 25rpx;
+}

+ 79 - 0
pages/visitList/visitList.js

@@ -0,0 +1,79 @@
+// pages/visitList/visitList.js
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    arr: [{
+      name: 1111,
+      time: '2020-09-09'
+    },{
+      name: 1111,
+      time: '2020-09-09'
+    },{
+      name: 1111,
+      time: '2020-09-09'
+    }]
+  },
+  go(){
+    wx.navigateTo({
+      url: '/pages/visitListInfo/visitListInfo',
+    })
+  },
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: function (options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload: function () {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh: function () {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom: function () {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage: function () {
+
+  }
+})

+ 4 - 0
pages/visitList/visitList.json

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText":"探访老人信息记录"
+}

+ 14 - 0
pages/visitList/visitList.wxml

@@ -0,0 +1,14 @@
+<view style="font-size:30rpx;margin:30rpx;">探访数量:0条(注:最多显示15条)</view>
+	<view class="b1">
+		<van-row style='text-align:center;color:rgba(144,147,153)'>
+			<van-col span="6">老人姓名</van-col>
+			<van-col span="12">探访时间</van-col>
+		</van-row>
+	</view>
+	<view class="b1"  wx:for="{{arr}}" wx:key="index">
+		<van-row style='text-align:center;color:rgba(102,177,255)'>
+			<van-col span="6">{{item.name}}</van-col>
+			<van-col span="12">{{item.time}}</van-col>
+			<van-col span="6" style='font-weight:600' bindtap='go'>查看详情</van-col>
+		</van-row>
+	</view>

+ 9 - 0
pages/visitList/visitList.wxss

@@ -0,0 +1,9 @@
+/* pages/visitList/visitList.wxss */
+.b1 {
+  width: 700rpx;
+  margin-left: 25rpx;
+  font-size: 30rpx;
+  /* margin-top: 30rpx; */
+  line-height: 90rpx;
+  border-bottom: 1px solid #c0c4cc;
+}

+ 66 - 0
pages/visitListInfo/visitListInfo.js

@@ -0,0 +1,66 @@
+// pages/visitListInfo/visitListInfo.js
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: function (options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide: function () {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload: function () {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh: function () {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom: function () {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage: function () {
+
+  }
+})

+ 4 - 0
pages/visitListInfo/visitListInfo.json

@@ -0,0 +1,4 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText":"巡访老人记录详情"
+}

+ 28 - 0
pages/visitListInfo/visitListInfo.wxml

@@ -0,0 +1,28 @@
+<view class='container'>
+	<view>探访日期:2020-09-09</view>
+	<view>探访位置:	<text style="text-decoration:underline">位置位置位置位置位置位置位置位置位置位置位置位置位置位置位置位置位置位置位置位置位置位置位置</text></view>
+	<view>经度:<text style="text-decoration:underline;margin-right:30rpx">888888888</text>纬度:<text style="text-decoration:underline">888888888</text></view>
+	<view>老人姓名:<text style="color:rgba(133,194,90)">啦啦(22032319999999)</text></view>
+	<view>1.探访情况:</view>
+	<view style="display:flex;flex-direction:row;flex-wrap:wrap">
+		<view style="width:340rpx">
+			健康情况:健康
+		</view>
+		<view style="width:340rpx">
+			精神状态:良好
+		</view>
+		<view style="width:340rpx">
+			安全情况:安全
+		</view>
+		<view style="width:340rpx">
+			卫生环境:良好
+		</view>
+		<view style="width:340rpx">
+			居住环境:良好
+		</view>
+	</view>
+	<view>2.老人需求说明:坚决解决军军军军军</view>
+	<view>3.探访备注说明:就哈哈哈哈哈哈</view>
+	<view>4.现场含面部照片:</view>
+	<image mode='aspectFit' src="../../images/findbj.png"></image>
+</view>

+ 9 - 0
pages/visitListInfo/visitListInfo.wxss

@@ -0,0 +1,9 @@
+/* pages/visitListInfo/visitListInfo.wxss */
+.container{
+  margin: 30rpx;
+  width: 690rpx;
+  border: 1px solid red;
+  font-size: 28rpx;
+  line-height: 80rpx;
+  letter-spacing: 2rpx;
+}

+ 1 - 3
pages/visitandinfo/visitandinfo.js

@@ -316,6 +316,7 @@ Page({
 
   },
   onShow() {
+    console.log('onshow')
     console.log(wx.getStorageSync('user'), "打印");
     if (wx.getStorageSync('user') == '') {
       wx.showModal({
@@ -331,7 +332,6 @@ Page({
           }
         }
       })
-     
       this.setData({
         isTrue: false,
       })
@@ -343,13 +343,11 @@ Page({
       })
       if(this.data.isTrue){
         console.log("看我锕锕锕锕锕锕锕啊 ");
-        
         this.computeScrollViewHeight();
         this.computeScrollViewHeight1();
       }
       this.oldInfo();
       this.visitInfo();
-     
       switch (this.data.number) {
         case 0:
           this.openIdInfo();

+ 5 - 4
pages/visitandinfo/visitandinfo.wxml

@@ -6,7 +6,7 @@
 	<wxs module="oldHealth" src="../../utils/oldhealth.wxs"></wxs>
 	<wxs module="oldSecurity" src="../../utils/oldsecurity.wxs"></wxs>
 	<!-- wx:if='{{isTrue}}' -->
-	<view >
+	<view>
 		<view id='tabs'>
 			<view class='tabs-box'>
 				<block wx:for="{{['采集记录','巡访记录']}}" wx:key="index">
@@ -25,11 +25,12 @@
 						<van-tab title="审核完成"></van-tab>
 						<van-tab title="审核失败"></van-tab>
 					</van-tabs>
-					<view class="zizi">共<text class="number"> {{listData.length}} </text>条采集记录</view>
+					<view class="zizi">共<text class="number"> {{listData.length}} </text>条采集记录(点击可修改信息)</view>
+					<image src="../../images/nodata1.png" class='nodata' wx:if="{{listData.length==0}}"></image>
 					<scroll-view class="center" scroll-y="true" style='height: {{scrollHeight + "px"}}'>
-						<view class="tr" style=" border-bottom: 1px solid #dadada;width:670rpx;font-size:30rpx">
+						<view class="tr" style=" border-bottom: 1px solid #dadada;width:670rpx;font-size:30rpx" wx:if="{{listData.length!=0}}">
 							<view class="td " style="border-bottom: unset; width:78rpx;">
-								<checkbox checked="{{isAllTrue}}"  bindtap="selectall" />
+								<checkbox checked="{{isAllTrue}}" bindtap="selectall" />
 							</view>
 							<view style="border-bottom: unset;width:290rpx;text-align:left">姓名</view>
 							<view style="border-bottom: unset;width:180rpx;text-align:left">保存时间</view>

+ 7 - 0
pages/visitandinfo/visitandinfo.wxss

@@ -218,4 +218,11 @@ checkbox .wx-checkbox-input {
 }
 .ordert-detail{
   margin-top:20rpx;
+}
+.nodata{
+  width: 220rpx;
+  height: 169rpx;
+  position: fixed;
+  top: 500rpx;
+  left: 265rpx;
 }