diff --git a/pages/list/news-list.vue b/pages/list/news-list.vue
index 8d0ddbc59f8ee6ae6339247a2a010f140a830017..db978f3c6eb2a29831405dbb3a10e96e875365d8 100644
--- a/pages/list/news-list.vue
+++ b/pages/list/news-list.vue
@@ -21,7 +21,7 @@
+ :collection="collection" :field="field" :where="where" @load="load($event);isLoading = false;" @error="isLoading = false">
{{error.message}}
@@ -54,7 +54,7 @@
-
+
@@ -88,7 +88,8 @@
collection: 'opendb-news-articles,uni-id-users',
// 查询字段,多个字段用 , 分割
field: 'author{username, _id}, user_id,_id,avatar,title,excerpt,last_modify_date, comment_count, like_count',
- tipShow: false // 是否显示顶部提示框
+ tipShow: false ,// 是否显示顶部提示框
+ isLoading:true
};
},
/**
diff --git a/uni_modules/opendb-feedback/pages/opendb-feedback/list.vue b/uni_modules/opendb-feedback/pages/opendb-feedback/list.vue
index 6aba5d06f939ea7ed46b4b56cd1f9060111c8486..41ce80042e73fdb1b9727733adc1b01157e47074 100644
--- a/uni_modules/opendb-feedback/pages/opendb-feedback/list.vue
+++ b/uni_modules/opendb-feedback/pages/opendb-feedback/list.vue
@@ -1,7 +1,7 @@
+ field="content, title" where="is_reply == false" @load="isLoading == false" @error="isLoading == false">
@@ -9,7 +9,7 @@
-
+
@@ -19,7 +19,7 @@
export default {
data() {
return {
-
+ isLoading:true,
}
},
methods: {
diff --git a/uni_modules/uni-nodata/components/uni-nodata/uni-nodata.nvue b/uni_modules/uni-nodata/components/uni-nodata/uni-nodata.nvue
index e1944f15bdb4b38d797da69485d6fce7854ab18c..c9eab2e9da745cc06bc3e2624783cd0a35bda798 100644
--- a/uni_modules/uni-nodata/components/uni-nodata/uni-nodata.nvue
+++ b/uni_modules/uni-nodata/components/uni-nodata/uni-nodata.nvue
@@ -5,9 +5,14 @@
{{textTypes[networkType]}}
-
+
+
+
+
+
+ {{isLoading ? '加载中...' : ''}}
-
+
重试
@@ -21,7 +26,13 @@