@@ -19,10 +19,16 @@ Page({
*/
onLoad: function (options) {
this.getList()
- const that = this;
- const h = getApp().globalData.myNavBorHeight + getApp().globalData.safeAreaBottom;
+ setTimeout(() => {
+ this.setHeight();
+ }, 500);
+ },
+ setHeight() {
+ const that = this,
+ h = getApp().globalData.myNavBorHeight + getApp().globalData.safeAreaBottom;
wx.getSystemInfo({
success(res) {
+ console.log(res)
that.setData({
scrollH: res.windowHeight - h - 7
})
@@ -48,7 +48,7 @@ Page({
"method": "query_supplyanddemandList",
"content": {
"getdatafromdbanyway": true,
- "pageNumber": 2,
+ "pageNumber": 1,
"pageSize": 10,
"where": {}
}