From 7b3ce853e90ce7aff00f2ca055177e22ade47bc8 Mon Sep 17 00:00:00 2001 From: Connor <1813766834@qq.com> Date: Thu, 6 Jun 2024 19:36:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/post/postInfo/postInfo.vue | 297 ++++++++++++++++++++++++++++++- 1 file changed, 292 insertions(+), 5 deletions(-) diff --git a/pages/post/postInfo/postInfo.vue b/pages/post/postInfo/postInfo.vue index 6dda658..651a5d4 100644 --- a/pages/post/postInfo/postInfo.vue +++ b/pages/post/postInfo/postInfo.vue @@ -7,16 +7,70 @@ 全部评论 举报 - + 暂无评论,快去做评论第一人吧! 快去抢沙发 + + + + + + + + + {{item.uname}} + {{item.address}} + + + + {{item.content}} + + {{item.createTime}} + 回复 + + + + ---展开回复 + + + + + + + + {{answer.uname}} + -> + {{answer.toUserName}} + + + {{answer.content}} + + {{answer.createTime}} + 回复 + + + + ---收起 + + - + + + + + + + + 发送 + + + + - + 友好评论~ @@ -57,9 +111,55 @@ - From 7fa69e92ffaa7506dcf4bef470e6cff59abde9b7 Mon Sep 17 00:00:00 2001 From: Connor <1813766834@qq.com> Date: Thu, 6 Jun 2024 19:48:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20pages.json=20=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20-=20=E9=A6=96=E9=A1=B5=E9=85=8D=E7=BD=AE=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E3=80=81=E5=90=88=E5=B9=B6=E8=AF=AF=E5=88=A0=E8=AF=9D?= =?UTF-8?q?=E9=A2=98=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 22 ++++++++++++++-------- pages/post/postInfo/postInfo.vue | 4 ++++ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/pages.json b/pages.json index e8f070e..293f2e1 100644 --- a/pages.json +++ b/pages.json @@ -16,6 +16,20 @@ "navigationBarTextStyle": "white" } }, + { + "path" : "pages/post/postInfo/postInfo", + "style" : + { + "navigationBarTitleText" : "话题详情" + } + }, + { + "path" : "pages/post/postPublish/postPublish", + "style" : + { + "navigationBarTitleText" : "发布话题" + } + }, { "path": "pages/signln/harvestaddress", "style": { @@ -37,14 +51,6 @@ "navigationStyle": "custom" } }, - { - "path": "pages/index", - "style": { - "navigationBarTitleText": "若依移动端框架", - "navigationStyle": "custom", - "navigationBarTextStyle": "white" - } - }, { "path": "pages/signln/signid", "style": { diff --git a/pages/post/postInfo/postInfo.vue b/pages/post/postInfo/postInfo.vue index 651a5d4..ae39fef 100644 --- a/pages/post/postInfo/postInfo.vue +++ b/pages/post/postInfo/postInfo.vue @@ -118,6 +118,10 @@ // 监听键盘高度变化 uni.onKeyboardHeightChange(res => { + if(res.height == 0) { + bottomVal.value = 0; + return; + } bottomVal.value = res.height - 20; console.log(bottomVal.value) });