|
@@ -4,6 +4,7 @@ Page({
|
|
logs: [],
|
|
logs: [],
|
|
currentTabIndex: 0,
|
|
currentTabIndex: 0,
|
|
select_all: false,
|
|
select_all: false,
|
|
|
|
+ isTrue: false,
|
|
isAllTrue: false, // 控制全选和反选的按钮
|
|
isAllTrue: false, // 控制全选和反选的按钮
|
|
listData: [
|
|
listData: [
|
|
// {
|
|
// {
|
|
@@ -343,8 +344,12 @@ Page({
|
|
computeScrollViewHeight1() {
|
|
computeScrollViewHeight1() {
|
|
let that = this
|
|
let that = this
|
|
let query = wx.createSelectorQuery().in(this)
|
|
let query = wx.createSelectorQuery().in(this)
|
|
|
|
+ console.log(query,"..........................");
|
|
|
|
+
|
|
query.select('.zizi').boundingClientRect()
|
|
query.select('.zizi').boundingClientRect()
|
|
query.exec(res => {
|
|
query.exec(res => {
|
|
|
|
+ console.log(res);
|
|
|
|
+
|
|
let searchHeight = res[0].height
|
|
let searchHeight = res[0].height
|
|
let windowHeight = wx.getSystemInfoSync().windowHeight
|
|
let windowHeight = wx.getSystemInfoSync().windowHeight
|
|
let scrollHeight = windowHeight - searchHeight - 30 - 5 - 50
|
|
let scrollHeight = windowHeight - searchHeight - 30 - 5 - 50
|
|
@@ -355,16 +360,7 @@ Page({
|
|
},
|
|
},
|
|
|
|
|
|
onLoad() {
|
|
onLoad() {
|
|
- if (wx.getStorageSync('user') == '') {
|
|
|
|
- wx.redirectTo({
|
|
|
|
- url: '/pages/login/login',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- this.oldInfo();
|
|
|
|
- this.visitInfo();
|
|
|
|
- this.computeScrollViewHeight();
|
|
|
|
- this.computeScrollViewHeight1();
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
console.log(wx.getStorageSync('user'), "打印");
|
|
console.log(wx.getStorageSync('user'), "打印");
|
|
@@ -372,11 +368,22 @@ Page({
|
|
wx.redirectTo({
|
|
wx.redirectTo({
|
|
url: '/pages/login/login',
|
|
url: '/pages/login/login',
|
|
})
|
|
})
|
|
- }else {
|
|
|
|
|
|
+ this.setData({
|
|
|
|
+ isTrue: false,
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
this.setData({
|
|
this.setData({
|
|
isAllTrue: false,
|
|
isAllTrue: false,
|
|
- select_all: false
|
|
|
|
|
|
+ select_all: false,
|
|
|
|
+ isTrue: true,
|
|
})
|
|
})
|
|
|
|
+ if(this.data.isTrue){
|
|
|
|
+ this.computeScrollViewHeight();
|
|
|
|
+ this.computeScrollViewHeight1();
|
|
|
|
+ }
|
|
|
|
+ this.oldInfo();
|
|
|
|
+ this.visitInfo();
|
|
|
|
+
|
|
switch (this.data.number) {
|
|
switch (this.data.number) {
|
|
case 0:
|
|
case 0:
|
|
this.openIdInfo();
|
|
this.openIdInfo();
|
|
@@ -413,9 +420,9 @@ Page({
|
|
this.visitInfo();
|
|
this.visitInfo();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onHide(){
|
|
|
|
|
|
+ onHide() {
|
|
this.setData({
|
|
this.setData({
|
|
- show :false
|
|
|
|
|
|
+ show: false
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|