From 759640bca4a6ac4ac55402382dab5ab7838b7562 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 21 Feb 2023 14:26:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E5=88=86=E9=A1=B5=EF=BC=8C?= =?UTF-8?q?=E6=88=91=E7=9A=84=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qujing/AppContentQj/contentDetail.vue | 94 +++++++++++-------- src/project/qujing/AppMine/AppMine.vue | 14 +-- src/project/qujing/AppMine/myCertificate.vue | 75 +++++++++++++++ 3 files changed, 136 insertions(+), 47 deletions(-) create mode 100644 src/project/qujing/AppMine/myCertificate.vue diff --git a/src/project/qujing/AppContentQj/contentDetail.vue b/src/project/qujing/AppContentQj/contentDetail.vue index 3e7aaa9..ed871d0 100644 --- a/src/project/qujing/AppContentQj/contentDetail.vue +++ b/src/project/qujing/AppContentQj/contentDetail.vue @@ -8,14 +8,14 @@
- {{ commentList.length || 0}}+ + {{ total || 0}}+
-

共{{ commentList.length }}条评论

-
+

共{{ total || 0 }}条评论

+
@@ -29,7 +29,7 @@
{{ item.content }}
-
+
@@ -77,6 +77,9 @@ export default { commentList: [], id: '', flag: false, + current: 1, + pages: 2, + total: 0 } }, onLoad({id}) { @@ -98,9 +101,12 @@ export default { }, // 评论集合 getComment() { - this.$instance.post(`/app/appcontentcomment/listForWX?contentId=${this.id}`).then(res=> { + if(this.current > this.pages) return + this.$instance.post(`/app/appcontentcomment/listForWX?contentId=${this.id}¤t=${this.current}`).then(res=> { if(res?.data) { - this.commentList = res.data.records + this.commentList = this.current==1? res.data.records: [...this.commentList,...res.data.records] + this.total = res.data.total + this.pages = res.data.pages } }) }, @@ -131,6 +137,10 @@ export default { this.$u.toast(err.msg) }) }, + scrollLower() { + this.current++ + this.getComment() + }, }, onShareAppMessage() { return { @@ -146,7 +156,7 @@ export default {