riku
2022-09-06 bf580d5477d65f5eefb70a8fb9a6b37eaf0ae9bb
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
@@ -56,7 +58,7 @@
      success (res) {
        let result = that.data.result
        res.forEach(r => {
          r.des = r.des.replace('\\n', '<br/>')
          r.des = r.des.replaceAll('\\n', '<br/>')
          if (result.length === 0) {
            result.push({
              typeId: r.typeId,