From f448a9a12a81100f5eabbafa4d28521262e2c83d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Fri, 18 Feb 2022 11:05:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=91=E6=B0=91=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mods/AppVillager/AppVillager.vue | 66 +++++++++++++++-------- src/mods/AppVillager/add.vue | 17 +++++- src/mods/AppVillager/detail.vue | 79 +++++++++++++++++++--------- 3 files changed, 114 insertions(+), 48 deletions(-) diff --git a/src/mods/AppVillager/AppVillager.vue b/src/mods/AppVillager/AppVillager.vue index 0c65479..589465b 100644 --- a/src/mods/AppVillager/AppVillager.vue +++ b/src/mods/AppVillager/AppVillager.vue @@ -4,7 +4,9 @@
-
{{ items.dictName }}
+
{{ TopicName }}
+ +
@@ -16,20 +18,19 @@
-
+
- +
- 雷洋 + {{ item.createUserName }} - 美丽庭院 | 2020-10-28 12 + {{ $dict.getLabel('villagerCircleTopic', item.topic) }} | {{ item.createTime }}
-
-
审核中
+
{{ $dict.getLabel('auditStatus', item.status) }}
编辑
删除
@@ -38,17 +39,17 @@
-
-
⾦秋穿上⽑⾐,漫步森林,在阳光下呼吸伸展,⾃在安逸的天⼈。也许是兰天名字的由来吧。
+
+
{{ item.content }}
-
- +
+
- 东湖生态旅游风景区听涛景区 + {{ item.gpsDesc }}
@@ -79,7 +80,8 @@
- + +
+
+
{{ $dict.getLabel('auditStatus', detail.status) }}
-
审核中
+
删除
+ +
-
⾦秋穿上⽑⾐,漫步森林,在阳光下呼吸伸展,⾃在安逸的天⼈。也许是兰天名字的由来吧。
+
{{ detail.content }}
- +
- 东湖生态旅游风景区听涛景区 + {{ detail.gpsDesc }}
@@ -96,7 +99,8 @@ export default { props: {}, data() { return { - id: '888', + id: '', + avatarUrl: '', data: {}, poupShow: false, content: '', @@ -110,8 +114,9 @@ export default { computed: { ...mapState(['user']) }, watch: {}, onLoad(o) { - this.$dict.load('atWillReportType').then(() => { - // this.id = o.id + this.$dict.load('villagerCircleTopic').then(() => { + this.id = o.id + this.avatarUrl = o.avatarUrl this.getDetail() }) }, @@ -121,6 +126,15 @@ export default { this.$instance.post(`/app/appvillagercircleinfo/queryDetailById?id=${this.id}`).then((res) => { if (res.code == 0) { this.detail = res.data + this.getReplyList() + } + }) + }, + + getReplyList() { + this.$instance.post(`/app/appvillagercirclecomment/list?id=${detail.id}&size=999`).then((res) => { + if (res.code == 0) { + this.replylist = res.data.records } }) }, @@ -188,6 +202,13 @@ export default { this.deleId = '999' this.deleShow = true }, + + previewImage(images, img) { + uni.previewImage({ + urls: images.map((v) => v.url), + current: img, + }) + }, }, onShareAppMessage() { return { @@ -243,18 +264,26 @@ export default { } } - .status { - font-size: 28px; - margin-right: 10px; - } - .status0 { - color: #42d784; - } - .status1 { - color: #ff4466; - } - .status2 { - color: #ff883c; + .statusDele { + display: flex; + align-items: center; + .status { + font-size: 28px; + } + .status0 { + color: #42d784; + } + .status1 { + color: #ff4466; + } + .status2 { + color: #ff883c; + } + .dels { + margin-left: 20px; + width: 68px; + height: 68px; + } } } }