From 44a5ab5d8118160df71a345d28c39732176f5465 Mon Sep 17 00:00:00 2001 From: XiaoMo Date: Thu, 6 Apr 2023 19:00:11 +0800 Subject: [PATCH] =?UTF-8?q?a1300399510@qq.com=20=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BA=8E=202023/04/06=20-19:00:02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/detail/detailIndex.vue | 87 +++++++++++-------- .../search/searchResult/SearchResult.vue | 2 +- 2 files changed, 51 insertions(+), 38 deletions(-) diff --git a/src/views/detail/detailIndex.vue b/src/views/detail/detailIndex.vue index 160077c..53e3fd1 100755 --- a/src/views/detail/detailIndex.vue +++ b/src/views/detail/detailIndex.vue @@ -134,60 +134,67 @@ @@ -254,8 +261,9 @@ -
- +
+
@@ -601,17 +609,18 @@ export default { let data = res.data console.log(data); - this.postList.list = data.list + this.postList.list = data.data this.postList.page = data.page this.postList.limit = data.limit this.postList.count = data.count + + console.log(this.postList); }) }, - // 集中处理回复帖子 postComment(message) { this.$http.post("/api/operation/reply", { @@ -622,6 +631,10 @@ export default { }) }, + // 点击改变页数 + currentChange() { + this.getPostList() + }, // 点击点赞 tapLike() { diff --git a/src/views/search/searchResult/SearchResult.vue b/src/views/search/searchResult/SearchResult.vue index 3785c88..7b9037b 100755 --- a/src/views/search/searchResult/SearchResult.vue +++ b/src/views/search/searchResult/SearchResult.vue @@ -53,7 +53,7 @@
-
+