From 1112af4f36d434904d36a95835a9b6d28a69a488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=A4=AA=E8=8F=9C=E4=BA=86=E3=80=82?= Date: Mon, 29 May 2023 21:12:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=95=8C=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=8B=E6=8B=89=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- teamwork/pages.json | 13 ++++--------- teamwork/pages/post/message.vue | 6 ++++++ teamwork/pages/sport/main.vue | 3 ++- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/teamwork/pages.json b/teamwork/pages.json index 9ae5b86..9c3d928 100644 --- a/teamwork/pages.json +++ b/teamwork/pages.json @@ -164,17 +164,12 @@ "style": { "navigationStyle": "custom" } - }, { - "path": "pages/sport/countdown", - "style": { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - }, { + }, + { "path": "pages/post/message", "style": { - "navigationStyle": "custom" + "navigationStyle": "custom", + "enablePullDownRefresh": true } }], "globalStyle": { diff --git a/teamwork/pages/post/message.vue b/teamwork/pages/post/message.vue index 9e98f47..0d88e3d 100644 --- a/teamwork/pages/post/message.vue +++ b/teamwork/pages/post/message.vue @@ -38,6 +38,12 @@ } }, + + //下拉刷新 + onPullDownRefresh() { + this.getAllMessage(); + uni.stopPullDownRefresh(); + }, onLoad() { this.getAllMessage(); }, diff --git a/teamwork/pages/sport/main.vue b/teamwork/pages/sport/main.vue index 9a846a1..f98833e 100644 --- a/teamwork/pages/sport/main.vue +++ b/teamwork/pages/sport/main.vue @@ -178,7 +178,8 @@ color: #f1992d; /* opacity: 80%; */ margin-top: 10px; - margin-left: 55px; + text-align:center; + } .start-button { -- GitLab