riku
2022-08-26 c765c26eee1249b0a8d72d2b203b2ed124c2bbf6
pages/module_consult/consultresultmore/consultresultmore.js
@@ -18,6 +18,8 @@
  onLoad(options) {
    var that = this
    this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) {
      console.log('getOpenerEventChannel:');
      console.log(data);
      that.setData({
        keyword: data.keyword,
        typeId: data.typeId,
@@ -27,14 +29,14 @@
    })
  },
  // onReachBottom () {
  //   console.log('onReachBottom');
  //   if (this.cPage && this.tPage) {
  //     if (this.cPage < this.tPage) {
  //       this.search(this.cPage + 1)
  //     }
  //   }
  // },
  onReachBottom () {
    console.log('onReachBottom');
    if (this.cPage && this.tPage) {
      if (this.cPage < this.tPage) {
        this.search(this.cPage + 1)
      }
    }
  },
  search (cPage = 1) {
    var that = this