From 741d1f7b2e2ac1c3f89d80dfac7625e3427e2367 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 12 十月 2022 17:43:02 +0800
Subject: [PATCH] 2022.10.12
---
base/behaviors/b_loadingStatus.js | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/base/behaviors/b_loadingStatus.js b/base/behaviors/b_loadingStatus.js
index ad6bf06..ebbd92d 100644
--- a/base/behaviors/b_loadingStatus.js
+++ b/base/behaviors/b_loadingStatus.js
@@ -1,10 +1,12 @@
/**
- * 鏁版嵁鍔犺浇鐩戝惉
+ * 鏁版嵁鍔犺浇鐘舵�佺洃鍚�
+ * @see './b_loadingToast.js' 鍜� '../../component/loadingstatus'
*/
module.exports = Behavior({
data: {
cPage: 1,
tPage: 1,
+ perPage: 10,
totalCount: 0,
loading: false,
needLoadMore: false
@@ -14,6 +16,7 @@
if (loading) {
this._loadStart()
this._loading()
+ setTimeout(() => { this.setData({loading: false}) }, 20000);
} else {
this._loadComplete()
}
@@ -31,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') {
@@ -59,6 +62,6 @@
if (typeof this.loadComplete === 'function') {
this.loadComplete()
}
- }
+ },
}
})
\ No newline at end of file
--
Gitblit v1.9.3