Sfoglia il codice sorgente

fix 修复首页onReachBottom出错

tumobi 8 anni fa
parent
commit
a0a3af6863
2 ha cambiato i file con 1 aggiunte e 13 eliminazioni
  1. 1 1
      config/api.js
  2. 0 12
      pages/index/index.js

+ 1 - 1
config/api.js

@@ -1,4 +1,4 @@
-var NewApiRootUrl = 'http://192.168.31.233:8360/api/';
+var NewApiRootUrl = 'http://192.168.31.116:8360/api/';
 
 module.exports = {
     IndexUrl: NewApiRootUrl + 'index/index', //首页数据接口

+ 0 - 12
pages/index/index.js

@@ -53,16 +53,4 @@ Page({
   onUnload: function () {
     // 页面关闭
   },
-  onReachBottom: function () {
-
-    if (this.data.bottomLoadDone === true || this.data.bottomLoading === true) {
-      return false;
-    }
-
-    this.setData({
-      bottomLoading: true
-    });
-
-    this.getFloorCategory();
-  }
 })