...
|
...
|
@@ -7,7 +7,7 @@ |
|
|
<ArticleItemIntro ref="articleIntro" :thumb="thumb" :type="type" :share="share" :data="introData" @on-expand="onExpand" @on-expanding="onExpanding" @on-show-guang="onShowGuang" @on-show-comment="onShowComment"
|
|
|
:article-id="articleId" :pos-id="posId">
|
|
|
</ArticleItemIntro>
|
|
|
<ArticleItemComment :thumb="thumb" :type="type" :share="share" :data="commentData" :user-head-ico="userHeadIco" @on-show-comment="onShowComment" @on-resize="onResize" :pos-id="posId" :article-id="data.articleId" ></ArticleItemComment>
|
|
|
<ArticleItemComment ref="comment" :thumb="thumb" :type="type" :share="share" :data="commentData" :user-head-ico="userHeadIco" @on-show-comment="onShowComment" @on-resize="onResize" :pos-id="posId" :article-id="data.articleId" ></ArticleItemComment>
|
|
|
</slot>
|
|
|
<div class="line"></div>
|
|
|
</div>
|
...
|
...
|
@@ -123,8 +123,12 @@ export default { |
|
|
this.$emit('on-show-guang', {articleId: this.data.relateId, grassId: this.data.articleId});
|
|
|
this.reportOpenGuang();
|
|
|
},
|
|
|
onShowComment() {
|
|
|
this.$emit('on-show-comment', {articleId: this.data.articleId, index: this.index, commentCount: this.data.commentCount});
|
|
|
onShowComment({commentCount}) {
|
|
|
if (commentCount) {
|
|
|
this.$emit('on-show-comment', {articleId: this.data.articleId, index: this.index, commentCount: this.data.commentCount});
|
|
|
} else {
|
|
|
this.$refs.comment.commentClick();
|
|
|
}
|
|
|
},
|
|
|
onShowMore() {
|
|
|
this.$emit('on-show-more', {article: this.data, index: this.index});
|
...
|
...
|
|