From fc719f7cd75d556952db809ca471c1779e8a3a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Sat, 31 Aug 2024 13:38:57 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=9F=A5=E7=9C=8B=E5=B8=96?= =?UTF-8?q?=E5=AD=90=E5=9B=9E=E5=A4=8D=EF=BC=8C=E6=9F=A5=E7=9C=8B=E5=AD=90?= =?UTF-8?q?=E5=9B=9E=E5=A4=8DTODO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/postReply/tpr-main.vue | 109 +++++++++++++ src/components/postReply/tpr-reply.vue | 195 ++++++++++++++++++++++++ src/plugins/Mys/request/getPostReply.ts | 8 +- src/views/t-post.vue | 2 + 4 files changed, 310 insertions(+), 4 deletions(-) create mode 100644 src/components/postReply/tpr-main.vue create mode 100644 src/components/postReply/tpr-reply.vue diff --git a/src/components/postReply/tpr-main.vue b/src/components/postReply/tpr-main.vue new file mode 100644 index 00000000..bd6415b2 --- /dev/null +++ b/src/components/postReply/tpr-main.vue @@ -0,0 +1,109 @@ + + + diff --git a/src/components/postReply/tpr-reply.vue b/src/components/postReply/tpr-reply.vue new file mode 100644 index 00000000..49ea9753 --- /dev/null +++ b/src/components/postReply/tpr-reply.vue @@ -0,0 +1,195 @@ + + + diff --git a/src/plugins/Mys/request/getPostReply.ts b/src/plugins/Mys/request/getPostReply.ts index 1af93be1..ef994658 100644 --- a/src/plugins/Mys/request/getPostReply.ts +++ b/src/plugins/Mys/request/getPostReply.ts @@ -10,7 +10,7 @@ import MysApi from "../api/index.js"; /** * @description 获取帖子回复信息 * @since Beta v0.5.5 - * @param {number} postId 帖子 ID + * @param {string} postId 帖子 ID * @param {number} gid 社区 ID * @param {boolean} isHot 是否热门 * @param {boolean} onlyMaster 是否只看楼主 @@ -20,10 +20,10 @@ import MysApi from "../api/index.js"; * @return {Promise} */ export async function getPostReply( - postId: number, + postId: string, gid: number, - isHot: boolean, - lastId: string, + isHot: boolean = true, + lastId?: string, onlyMaster: boolean = false, orderType?: 1 | 2, size: number = 20, diff --git a/src/views/t-post.vue b/src/views/t-post.vue index 86fece50..f7469bc0 100644 --- a/src/views/t-post.vue +++ b/src/views/t-post.vue @@ -7,6 +7,7 @@ v-model:loading="loadShare" :title="shareTitle" /> +