本村活动
This commit is contained in:
@@ -18,24 +18,7 @@
|
||||
<div class="bbs-item__info--content">
|
||||
<p>{{ item.content }}</p>
|
||||
<ai-uploader v-if="item.images && item.images.length" :instance="instance" :value="item.images" :limit="9" disabled></ai-uploader>
|
||||
<div class="text-button" @click="remove(item.id)">删除动态</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bbs-replay">
|
||||
<div class="bbs-replay__item" v-for="(replay, index) in item.replyList" :key="index">
|
||||
<div class="bbs-replay__item--top">
|
||||
<img :src="replay.headPortrait" />
|
||||
<div class="right">
|
||||
<div class="right-user">
|
||||
<h2>{{ replay.createUserName }}</h2>
|
||||
<i>回复</i>
|
||||
<h2>{{ replay.lastReplyName }}</h2>
|
||||
</div>
|
||||
<span>{{ replay.createTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<p>{{ replay.content }}</p>
|
||||
<div class="text-button" @click="removeReplay(replay.id)">删除评论</div>
|
||||
<!-- <div class="text-button" @click="remove(item.id)">删除动态</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -65,9 +48,9 @@
|
||||
|
||||
methods: {
|
||||
getInfo (id) {
|
||||
this.instance.post(`/app/apppostinfo/listWitReply?activityId=${id}`).then(res => {
|
||||
this.instance.post(`/app/appvillageactivitypost/list?size=1000&activityId=${id}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.list = res.data.map(v => {
|
||||
this.list = res.data.records.map(v => {
|
||||
return {
|
||||
...v,
|
||||
images: v.images ? JSON.parse(v.images) : []
|
||||
@@ -77,20 +60,9 @@
|
||||
})
|
||||
},
|
||||
|
||||
removeReplay(id) {
|
||||
this.$confirm('确定删除该数据?').then(() => {
|
||||
this.instance.post(`/app/apppostreply/delete?id=${id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.getInfo(this.id)
|
||||
this.$message.success('删除成功!')
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
remove(id) {
|
||||
this.$confirm('确定删除该数据?').then(() => {
|
||||
this.instance.post(`/app/apppostinfo/delete?id=${id}`).then((res) => {
|
||||
this.instance.post(`/app/appvillageactivitypost/delete?id=${id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('删除成功!')
|
||||
this.getList()
|
||||
|
||||
Reference in New Issue
Block a user