diff --git a/src/project/fengdu/AppCircle/MyPostList.vue b/src/project/fengdu/AppCircle/MyPostList.vue index 4ffa26b..e796bd8 100644 --- a/src/project/fengdu/AppCircle/MyPostList.vue +++ b/src/project/fengdu/AppCircle/MyPostList.vue @@ -76,7 +76,7 @@

{{ item.createUserName }}

{{ item.publishDepartName }} - +
#【{{ item.topicName }}】 @@ -106,7 +106,7 @@
{{ item.myComment.createTime }} - +

{{ item.myComment.content }}

{}) }, - + removeLike(id){ + this.$dialog.confirm({ + title: '温馨提示', + content: '您确定取消点赞吗?' + }).then(() => { + this.$instance.post(`/app/appneighborhoodassistance/appreciate?id=${id}`).then(res => { + if (res.code === 0) { + this.$toast('删除成功!') + this.getInfo() + uni.$emit('updateList') + this.changeTab(this.currIndex) + } + }) + }).catch(() => 0) + }, removeComment (id) { this.$dialog.confirm({ title: '温馨提示', @@ -224,7 +237,6 @@ }) }).catch(() => {}) }, - changeTab (index) { this.currIndex = index this.isMore = false @@ -270,13 +282,11 @@ } }) } - if (res.data.records.length < 10) { this.isMore = true return false } - this.current = this.current + 1 } else { this.isMore = true