From 959a3e373a04d86afd2a2be502b8068e896ed23f Mon Sep 17 00:00:00 2001 From: BTMuli Date: Wed, 27 Dec 2023 22:26:47 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=B7=BB=E5=8A=A0=E5=90=88?= =?UTF-8?q?=E9=9B=86=20overlay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/post/tpo-collection.vue | 202 +++++++++++++++++++ src/plugins/Mys/request/getCollectionData.ts | 4 +- src/views/t-post.vue | 155 +++++++------- 3 files changed, 288 insertions(+), 73 deletions(-) create mode 100644 src/components/post/tpo-collection.vue diff --git a/src/components/post/tpo-collection.vue b/src/components/post/tpo-collection.vue new file mode 100644 index 00000000..5aab7955 --- /dev/null +++ b/src/components/post/tpo-collection.vue @@ -0,0 +1,202 @@ + + + diff --git a/src/plugins/Mys/request/getCollectionData.ts b/src/plugins/Mys/request/getCollectionData.ts index 6d6234fb..8d07fb36 100644 --- a/src/plugins/Mys/request/getCollectionData.ts +++ b/src/plugins/Mys/request/getCollectionData.ts @@ -37,11 +37,11 @@ export async function getCollectionData( /** * @description 获取合集帖子 * @since Beta v0.3.9 - * @param {number} collectionId 合集 ID + * @param {string} collectionId 合集 ID * @returns {Promise} */ export async function getCollectionPosts( - collectionId: number, + collectionId: string, ): Promise { const url = `https://bbs-api.miyoushe.com/post/wapi/getPostFullInCollection?collection_id=${collectionId}`; return await http diff --git a/src/views/t-post.vue b/src/views/t-post.vue index b37ef7dc..c72a58c5 100644 --- a/src/views/t-post.vue +++ b/src/views/t-post.vue @@ -7,62 +7,85 @@ :title="shareTitle" /> -
+