riku
2022-10-12 741d1f7b2e2ac1c3f89d80dfac7625e3427e2367
base/behaviors/b_loadingStatus.js
@@ -1,5 +1,6 @@
/**
 * 数据加载监听
 * 数据加载状态监听
 * @see './b_loadingToast.js' 和 '../../component/loadingstatus'
 */
module.exports = Behavior({
  data: {
@@ -15,6 +16,7 @@
      if (loading) {
        this._loadStart()
        this._loading()
        setTimeout(() => { this.setData({loading: false}) }, 20000);
      } else {
        this._loadComplete()
      }
@@ -32,7 +34,7 @@
  },
  methods: {
    _onReachBottom() {
      console.log('_onReachBottom');
      // console.log('_onReachBottom');
      let {cPage, tPage, loading} = this.data
      if (!loading && cPage < tPage) {
        if (typeof this.loadmore === 'function') {