zhaoxiaohai 3 年之前
父节点
当前提交
32a625a280
共有 2 个文件被更改,包括 9 次插入3 次删除
  1. 8 2
      pages/tabbar-pages/message/index.js
  2. 1 1
      pages/tabbar-pages/supplyAndDemand/particulars.js

+ 8 - 2
pages/tabbar-pages/message/index.js

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

+ 1 - 1
pages/tabbar-pages/supplyAndDemand/particulars.js

@@ -48,7 +48,7 @@ Page({
             "method": "query_supplyanddemandList",
             "content": {
                 "getdatafromdbanyway": true,
-                "pageNumber": 2,
+                "pageNumber": 1,
                 "pageSize": 10,
                 "where": {}
             }