From b2f5acdc9ed0d258e6ed453e1da7b8af3c7f37a1 Mon Sep 17 00:00:00 2001 From: linju-json Date: Thu, 13 May 2021 20:17:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Euni-load-state=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E8=BF=99=E6=98=AF=E4=B8=80=E4=B8=AA=E5=B0=81?= =?UTF-8?q?=E8=A3=85=E6=95=B0=E6=8D=AE=E8=AF=B7=E6=B1=82=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=9A=84=E7=BB=84=E4=BB=B6=E3=80=82=E6=A0=B9=E6=8D=AEuniCloud-?= =?UTF-8?q?db=E7=BB=84=E4=BB=B6=E6=8F=90=E4=BE=9B=E7=9A=84=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=9B=B4=E6=8E=A5=E5=93=8D=E5=BA=94=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E7=9A=84=E6=95=88=E6=9E=9C=E3=80=82=E5=8C=85=E6=8B=AC=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E4=B8=AD=E3=80=81=E5=BD=93=E5=89=8D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E3=80=81=E6=B2=A1=E6=9C=89=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E3=80=81=E4=B8=8A=E6=8B=89=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=9B=B4=E5=A4=9A=EF=BC=9B=E5=8A=A0=E8=BD=BD=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=88=A4=E6=96=AD=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=98=AF=E6=96=AD?= =?UTF-8?q?=E7=BD=91=E5=B0=B1=E5=BC=95=E5=AF=BC=E6=89=93=E5=BC=80=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=BD=91=E7=BB=9C=E8=AE=BE=E7=BD=AE=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E3=80=82=E6=81=A2=E5=A4=8D=E8=81=94=E7=BD=91=E5=90=8E=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E8=A7=A6=E5=8F=91networkResume=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 3 +- pages/list/list.nvue | 62 +++++------- pages/ucenter/read-news-log/read-news-log.vue | 27 +++--- .../disconnection.png | Bin .../js_sdk/validator/opendb-news-favorite.js | 28 ------ uni_modules/read-news-log/package.json | 89 ------------------ uni_modules/read-news-log/readme.md | 1 - .../changelog.md | 0 .../uni-load-state/uni-load-state.vue | 57 +++++++---- uni_modules/uni-load-state/package.json | 76 +++++++++++++++ uni_modules/uni-load-state/readme.md | 1 + 11 files changed, 151 insertions(+), 193 deletions(-) rename static/{uni-network => uni-load-state}/disconnection.png (100%) delete mode 100644 uni_modules/read-news-log/js_sdk/validator/opendb-news-favorite.js delete mode 100644 uni_modules/read-news-log/package.json delete mode 100644 uni_modules/read-news-log/readme.md rename uni_modules/{read-news-log => uni-load-state}/changelog.md (100%) rename components/uni-network/uni-network.vue => uni_modules/uni-load-state/components/uni-load-state/uni-load-state.vue (59%) create mode 100644 uni_modules/uni-load-state/package.json create mode 100644 uni_modules/uni-load-state/readme.md diff --git a/pages.json b/pages.json index 4d362df..e2258d0 100644 --- a/pages.json +++ b/pages.json @@ -149,13 +149,12 @@ "navigationBarTitleText": "注册", "enablePullDownRefresh": false } - }, { "path": "pages/ucenter/read-news-log/read-news-log", "style": { "navigationBarTitleText": "阅读记录", - "enablePullDownRefresh": false + "enablePullDownRefresh": true } } ], diff --git a/pages/list/list.nvue b/pages/list/list.nvue index 91bb562..629bc8d 100644 --- a/pages/list/list.nvue +++ b/pages/list/list.nvue @@ -7,51 +7,31 @@ + field="avatar,title,last_modify_date,user_id{username}"> - + + + + + + {{ item.title }} + + {{item.user_id[0].username}} + + + + + - - - - + + diff --git a/pages/ucenter/read-news-log/read-news-log.vue b/pages/ucenter/read-news-log/read-news-log.vue index 45d6ce0..5a36240 100644 --- a/pages/ucenter/read-news-log/read-news-log.vue +++ b/pages/ucenter/read-news-log/read-news-log.vue @@ -3,22 +3,17 @@ - - - - - {{item.title}} - - - - - - - - + + + + {{item.title}} + + + + diff --git a/static/uni-network/disconnection.png b/static/uni-load-state/disconnection.png similarity index 100% rename from static/uni-network/disconnection.png rename to static/uni-load-state/disconnection.png diff --git a/uni_modules/read-news-log/js_sdk/validator/opendb-news-favorite.js b/uni_modules/read-news-log/js_sdk/validator/opendb-news-favorite.js deleted file mode 100644 index d102c77..0000000 --- a/uni_modules/read-news-log/js_sdk/validator/opendb-news-favorite.js +++ /dev/null @@ -1,28 +0,0 @@ - -// 表单校验规则由 schema2code 生成,不建议直接修改校验规则,而建议通过 schema2code 生成, 详情: https://uniapp.dcloud.net.cn/uniCloud/schema - - - -const validator = { - "article_id": { - "rules": [ - { - "required": true - }, - { - "format": "string" - } - ] - }, - "create_date": { - "rules": [ - { - "format": "timestamp" - } - ] - } -} - -const enumConverter = {} - -export { validator, enumConverter } diff --git a/uni_modules/read-news-log/package.json b/uni_modules/read-news-log/package.json deleted file mode 100644 index 8faf275..0000000 --- a/uni_modules/read-news-log/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "id": "opendb-news-favorite", - "displayName": "opendb-news-favorite", - "version": "1.0.0", - "description": "", - "keywords": [ - "opendb-news-favorite" - ], - "repository": "", - "engines": { - "HBuilderX": "^3.1.0" - }, - "dcloudext": { - "category": [ - "uniCloud", - "Admin插件" - ], - "sale": { - "regular": { - "price": "0.00" - }, - "sourcecode": { - "price": "0.00" - } - }, - "contact": { - "qq": "" - }, - "declaration": { - "ads": "无", - "data": "无", - "permissions": "无" - }, - "npmurl": "" - }, - "uni_modules": { - "dependencies": [ - "uni-dateformat", - "uni-badge", - "uni-icons", - "uni-link", - "uni-load-more", - "uni-forms", - "uni-group", - "uni-list", - "uni-fab", - "uni-datetime-picker", - "uni-file-picker", - "uni-easyinput" - ], - "encrypt": [], - "platforms": { - "cloud": { - "tcb": "y", - "aliyun": "y" - }, - "client": { - "App": { - "app-vue": "y", - "app-nvue": "u" - }, - "H5-mobile": { - "Safari": "y", - "Android Browser": "y", - "微信浏览器(Android)": "y", - "QQ浏览器(Android)": "y" - }, - "H5-pc": { - "Chrome": "y", - "IE": "u", - "Edge": "y", - "Firefox": "y", - "Safari": "y" - }, - "小程序": { - "微信": "y", - "阿里": "y", - "百度": "y", - "字节跳动": "y", - "QQ": "y" - }, - "快应用": { - "华为": "u", - "联盟": "u" - } - } - } - } -} \ No newline at end of file diff --git a/uni_modules/read-news-log/readme.md b/uni_modules/read-news-log/readme.md deleted file mode 100644 index 71487e6..0000000 --- a/uni_modules/read-news-log/readme.md +++ /dev/null @@ -1 +0,0 @@ -# opendb-news-favorite \ No newline at end of file diff --git a/uni_modules/read-news-log/changelog.md b/uni_modules/uni-load-state/changelog.md similarity index 100% rename from uni_modules/read-news-log/changelog.md rename to uni_modules/uni-load-state/changelog.md diff --git a/components/uni-network/uni-network.vue b/uni_modules/uni-load-state/components/uni-load-state/uni-load-state.vue similarity index 59% rename from components/uni-network/uni-network.vue rename to uni_modules/uni-load-state/components/uni-load-state/uni-load-state.vue index ec49186..190d145 100644 --- a/components/uni-network/uni-network.vue +++ b/uni_modules/uni-load-state/components/uni-load-state/uni-load-state.vue @@ -1,30 +1,52 @@ -