| | |
| | | <template> |
| | | <div class="myFriend" style="min-height: 950px;"> |
| | | <h1 style="text-align: center;">碎碎念</h1> |
| | | <replyBox ref="commentBoxId"></replyBox> |
| | | <div> |
| | | <replyBox ref="commentBoxId" v-bind="$attrs"></replyBox> |
| | | <a-modal v-model="visible" :title="replyTaget" :footer="null" |
| | | :bodyStyle="{'overflow':'overlay','maxHeight': '550px','scrollbarWidth': 'none'}"> |
| | | <replyBox ref="replyBoxId"></replyBox> |
| | | <replyBox ref="replyBoxId" v-bind="$attrs"></replyBox> |
| | | </a-modal> |
| | | |
| | | <div class="mySecret" v-if="commentListData.length==0"> |
| | | <p>空空如也..</p> |
| | | </div> |
| | | <div v-for="temp in commentListData" class="commentList"> |
| | | |
| | | <div class="commentGroup"> |
| | |
| | | } from '../../api/blogArticleComment.js' |
| | | |
| | | export default { |
| | | props: ["articleId"], |
| | | components: { |
| | | replyBox |
| | | }, |
| | |
| | | queryBlogCommentList({ |
| | | pageNo: this.page.current, |
| | | pageSize: this.page.pageSize, |
| | | articleId: this.articleId |
| | | articleId: this.$attrs.acticleId |
| | | }).then((res) => { |
| | | this.page.total = Number(res.data.total) |
| | | this.page.pageSize = Number(res.data.size); |
| | |
| | | queryBlogCommentList({ |
| | | pageNo: this.page.current, |
| | | pageSize: this.page.pageSize, |
| | | articleId: this.articleId |
| | | articleId: this.$attrs.articleId |
| | | }).then((res) => { |
| | | this.page.total = Number(res.data.total) |
| | | this.page.pageSize = Number(res.data.size); |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | articleId: null, |
| | | // articleId: null, |
| | | isAllowedComment: true, |
| | | page: { |
| | | size: "small", |