roose 4 سال پیش
والد
کامیت
3827113991
3فایلهای تغییر یافته به همراه22 افزوده شده و 14 حذف شده
  1. 2 1
      app.json
  2. 19 12
      pages/visitandinfo/visitandinfo.js
  3. 1 1
      pages/visitandinfo/visitandinfo.wxml

+ 2 - 1
app.json

@@ -1,7 +1,8 @@
 {
   "pages": [
-    "pages/visitandinfo/visitandinfo",
     "pages/index/index",
+    "pages/visitandinfo/visitandinfo",
+  
    
     "pages/idCard/idCard",
     "pages/updatepassword/updatepassword",

+ 19 - 12
pages/visitandinfo/visitandinfo.js

@@ -22,7 +22,7 @@ Page({
     show: false,
     infos: {},
     photos: [],
-    scrollHeight:'',
+    scrollHeight: '',
   },
   onTabsItemTap: function (event) {
     let index = event.currentTarget.dataset.index;
@@ -73,9 +73,9 @@ Page({
     });
   },
   //删除
-  deletes(){
-   console.log("ssss");
-   
+  deletes() {
+    console.log("ssss");
+
   },
   //全选与反全选
   selectall: function (e) {
@@ -149,6 +149,7 @@ Page({
   },
 
   oldInfo(p) {
+    console.log("老人锕");
     wx.request({
       url: app.globalData.publicUrl + '/wxinfo/listByOpenid',
       method: "GET",
@@ -166,6 +167,8 @@ Page({
     })
   },
   visitInfo() {
+
+
     wx.request({
       url: app.globalData.publicUrl + '/visit/list',
       method: "GET",
@@ -190,13 +193,15 @@ Page({
       let searchHeight = res[0].height
       let titleHeight = res[1].height
       let windowHeight = wx.getSystemInfoSync().windowHeight
-      let scrollHeight = windowHeight - searchHeight - titleHeight - 30 - 5 - 50 
-     
-      console.log(titleHeight,"高度0");
-      console.log(searchHeight,"高度1");
-      console.log(windowHeight,"高度222");
-      console.log(scrollHeight,"最重高度");
-      this.setData({ scrollHeight: scrollHeight})
+      let scrollHeight = windowHeight - searchHeight - titleHeight - 30 - 5 - 50
+
+      console.log(titleHeight, "高度0");
+      console.log(searchHeight, "高度1");
+      console.log(windowHeight, "高度222");
+      console.log(scrollHeight, "最重高度");
+      this.setData({
+        scrollHeight: scrollHeight
+      })
     })
   },
 
@@ -211,7 +216,9 @@ Page({
       wx.redirectTo({
         url: '/pages/login/login',
       })
-    }
+    };
+    this.oldInfo();
+    this.visitInfo();
   }
 
 })

+ 1 - 1
pages/visitandinfo/visitandinfo.wxml

@@ -22,7 +22,7 @@
 						<van-tab title="审核失败"></van-tab>
 					</van-tabs>
 					<view class="zizi">共<text class="number">{{listData.length}}</text>条采集数据</view>
-					<scroll-view class="center" scroll-y="true" style='height: {{scrollHeight + "rpx"}}'>
+					<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 td22" style="border-bottom: unset; ">
 								<checkbox bindtap="selectall" />