| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="pl-more" v-if="item.childern.length > 0">展开2条回复</view> |
| | | <view class="pl-more" v-if="item.childern.length > 0" @click.stop="more(item)">展开{{item.replyCount - 1}}条回复</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | this.multifileList = [] |
| | | this.show1 = false |
| | | }, |
| | | // 展开评论 |
| | | more(item) { |
| | | this.$u.api.findActivityReplyCommentDTOPage({ |
| | | capacity: 10, |
| | | page: 1, |
| | | model: { |
| | | type: 1, |
| | | commentId: item.id |
| | | } |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | console.log(res) |
| | | } |
| | | }) |
| | | }, |
| | | // 评论 |
| | | sendComment() { |
| | | if (!this.value && this.multifileList.length === 0) return uni.showToast({ |
| | |
| | | activityId: this.info.id, |
| | | content: this.value, |
| | | multifileList: this.multifileList, |
| | | commentId: this.commentId, |
| | | // commentId: this.commentId, |
| | | replyId: this.item ? this.item.id : null |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | |
| | | if (this.commentId) { |
| | | this.commentList.forEach(item => { |
| | | if (item.id === this.commentId) { |
| | | item.commentList.childern.unshift(res.data) |
| | | item.childern.unshift(res.data) |
| | | } |
| | | }) |
| | | } else { |