|
@@ -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();
|
|
|
}
|
|
|
|
|
|
})
|