riku
2022-09-19 47e86f543415585ab1e1b2b1ed1d98830817a1be
base/behaviors/b_loadingStatus.js
@@ -5,6 +5,7 @@
  data: {
    cPage: 1,
    tPage: 1,
    perPage: 10,
    totalCount: 0,
    loading: false,
    needLoadMore: false
@@ -31,7 +32,7 @@
  },
  methods: {
    _onReachBottom() {
      console.log('_onReachBottom');
      // console.log('_onReachBottom');
      let {cPage, tPage, loading} = this.data
      if (!loading && cPage < tPage) {
        if (typeof this.loadmore === 'function') {
@@ -59,6 +60,6 @@
      if (typeof this.loadComplete === 'function') {
        this.loadComplete()
      }
    }
    },
  }
})