From 625627eadd914dc95813967a543a439eecc14fef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com>
Date: Tue, 13 Apr 2021 17:46:09 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A0=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=E7=BC=BA=E7=9C=81=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/list/news-list.vue | 7 +++---
.../pages/opendb-feedback/list.vue | 6 ++---
.../components/uni-nodata/uni-nodata.nvue | 22 +++++++++++++++---
uni_modules/uni-nodata/static/loading.png | Bin 0 -> 30470 bytes
4 files changed, 26 insertions(+), 9 deletions(-)
create mode 100644 uni_modules/uni-nodata/static/loading.png
diff --git a/pages/list/news-list.vue b/pages/list/news-list.vue
index 8d0ddbc..db978f3 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 6aba5d0..41ce800 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 e1944f1..c9eab2e 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 @@