|
@@ -118,6 +118,9 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ that.setData({
|
|
|
+ isAllTrue: false,
|
|
|
+ })
|
|
|
} else {
|
|
|
wx.showToast({
|
|
|
title: '请选择要删除的记录',
|
|
@@ -280,10 +283,10 @@ Page({
|
|
|
query.exec(res => {
|
|
|
console.log(res,"000000000000000000000");
|
|
|
|
|
|
- // let searchHeight = res[0].height
|
|
|
- // let titleHeight = res[1].height
|
|
|
+ let searchHeight = res[0].height
|
|
|
+ let titleHeight = res[1].height
|
|
|
let windowHeight = wx.getSystemInfoSync().windowHeight
|
|
|
- let scrollHeight = windowHeight - 21 - 31 - 30 - 5 - 50 - 44
|
|
|
+ let scrollHeight = windowHeight - searchHeight - titleHeight - 30 - 10 - 50 - 44
|
|
|
this.setData({
|
|
|
scrollHeight: scrollHeight
|
|
|
})
|
|
@@ -296,9 +299,9 @@ Page({
|
|
|
query.exec(res => {
|
|
|
console.log(res);
|
|
|
|
|
|
- // let searchHeight = res[0].height
|
|
|
+ let searchHeight = res[0].height
|
|
|
let windowHeight = wx.getSystemInfoSync().windowHeight
|
|
|
- let scrollHeight = windowHeight - 21 - 30 - 5 - 50
|
|
|
+ let scrollHeight = windowHeight - searchHeight - 30 - 5 - 50
|
|
|
this.setData({
|
|
|
scrollHeight1: scrollHeight
|
|
|
})
|
|
@@ -311,9 +314,20 @@ Page({
|
|
|
onShow() {
|
|
|
console.log(wx.getStorageSync('user'), "打印");
|
|
|
if (wx.getStorageSync('user') == '') {
|
|
|
- wx.redirectTo({
|
|
|
- url: '/pages/login/login',
|
|
|
+ wx.showModal({
|
|
|
+ showCancel: false,
|
|
|
+ content: '当前您未登录,请登录',
|
|
|
+ success (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ wx.redirectTo({
|
|
|
+ url: '/pages/login/login',
|
|
|
+ })
|
|
|
+ } else if (res.cancel) {
|
|
|
+ console.log('用户点击取消')
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
+
|
|
|
this.setData({
|
|
|
isTrue: false,
|
|
|
})
|