From 5c8dc0dfd1b97cf3ceb7ae6fa14c2ec6c81908c8 Mon Sep 17 00:00:00 2001 From: XiaoMo Date: Thu, 6 Apr 2023 18:40:10 +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-18:40:01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/detail/detailIndex.vue | 93 +++++++++++++++++++++++++++++--- 1 file changed, 86 insertions(+), 7 deletions(-) diff --git a/src/views/detail/detailIndex.vue b/src/views/detail/detailIndex.vue index 075cf56..160077c 100755 --- a/src/views/detail/detailIndex.vue +++ b/src/views/detail/detailIndex.vue @@ -125,12 +125,72 @@ + + - -
+
@@ -245,6 +304,7 @@
+ @@ -375,6 +435,14 @@ export default { key: "message" }], + postList: { // 回复列表数据 + list: [], + page: 1, + limit: 20, + count: 0, + }, + + }; }, @@ -384,7 +452,6 @@ export default { }, methods: { - // 获取详细信息 getDetail() { this.$http.post("/api/thread", { @@ -524,13 +591,24 @@ export default { // 获取回复列表 getPostList() { + let { page, limit } = this.postList this.$http.post("/api/thread/postList", { token: this.token, - page: 1, - limit: 20 + page, + limit, }).then(res => { - console.log(res); + if (res.code != 200) return + let data = res.data + console.log(data); + + this.postList.list = data.list + this.postList.page = data.page + this.postList.limit = data.limit + this.postList.count = data.count }) + + + }, @@ -866,6 +944,7 @@ export default { .vHtmlMessage { font-size: .36rem; line-height: .6rem; + word-break: break-word; /deep/ strong { font-weight: bold;