...
|
...
|
@@ -8,6 +8,7 @@ |
|
|
</div>
|
|
|
<div class="topics">
|
|
|
<WidgetTopic
|
|
|
:share="share"
|
|
|
:topic="label.labelName"
|
|
|
@click.native="onTopic(label)"
|
|
|
v-for="label in data.labelList"
|
...
|
...
|
@@ -16,12 +17,12 @@ |
|
|
</div>
|
|
|
<div class="widgets">
|
|
|
<div class="share">
|
|
|
<WidgetShare @click.native="onShare"></WidgetShare>
|
|
|
<WidgetShare :share="share" @click.native="onShare"></WidgetShare>
|
|
|
</div>
|
|
|
<div class="opts">
|
|
|
<WidgetFav :num="articleState.praiseCount" :article-id="data.articleId" :option="praiseOption"></WidgetFav>
|
|
|
<WidgetLike :num="articleState.favoriteCount" :article-id="data.articleId" :option="favoriteOption"></WidgetLike>
|
|
|
<WidgetComment :num="articleState.commentCount" @click.native="onShowComment"></WidgetComment>
|
|
|
<WidgetFav :share="share" :num="articleState.praiseCount" :article-id="data.articleId" :option="praiseOption"></WidgetFav>
|
|
|
<WidgetLike :share="share" :num="articleState.favoriteCount" :article-id="data.articleId" :option="favoriteOption"></WidgetLike>
|
|
|
<WidgetComment :share="share" :num="articleState.commentCount" @click.native="onShowComment"></WidgetComment>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -40,7 +41,8 @@ export default { |
|
|
return {};
|
|
|
}
|
|
|
},
|
|
|
type: String
|
|
|
type: String,
|
|
|
share: Boolean
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
...
|
...
|
@@ -122,6 +124,9 @@ export default { |
|
|
methods: {
|
|
|
...mapMutations(['CHANGE_ARTICLE_LIST_INTRO_HEIGHT', 'CHANGE_ARTICLE_LIST_INTRO']),
|
|
|
onTopic({labelId, labelName}) {
|
|
|
if (this.share) {
|
|
|
return this.$links.toDownloadApp();
|
|
|
}
|
|
|
this.$router.push({
|
|
|
name: 'topic',
|
|
|
params: {
|
...
|
...
|
@@ -132,9 +137,9 @@ export default { |
|
|
},
|
|
|
onShare() {
|
|
|
this.$yoho.share({
|
|
|
title: '逛资讯',
|
|
|
imgUrl: this.data.imageUrl,
|
|
|
link: `http://yoho-community-web.test3.ingress.dev.yohocorp.com/article/${this.data.articleId}?isShare=1`,
|
|
|
title: '逛',
|
|
|
imgUrl: this.data.shareImage,
|
|
|
link: `http://yoho-community-web.test3.ingress.dev.yohocorp.com/grass/article/share/${this.data.articleId}`,
|
|
|
desc: this.data.intro,
|
|
|
hideType: ['7', '8', '9']
|
|
|
});
|
...
|
...
|
|