|
|
<template>
|
|
|
<div>
|
|
|
<Layout class="article">
|
|
|
<TopicHeader ref="header" :title="topicTitle" :step="headerAnimateStep" :data="topicInfo" @on-follow="onFollowTopic"></TopicHeader>
|
|
|
<TopicHeader ref="header" :title="topicTitle" :step="headerAnimateStep" :data="topicInfo" :share="share" @on-follow="onFollowTopic"></TopicHeader>
|
|
|
|
|
|
<RecycleScrollReveal v-if="topicInfo.viewModel == 2" :size="20" :thumbs="thumbs" ref="scroll" @scroll="onScroll" :offset="2000" :on-fetch="onFetch"
|
|
|
@on-inited="onInited">
|
|
|
<template v-slot:eternalTop>
|
|
|
<TopicBanner ref="topicHead" :data="topicInfo" @on-follow="onFollowTopic"></TopicBanner>
|
|
|
<TopicBanner ref="topicHead" :data="topicInfo" :share="share" @on-follow="onFollowTopic"></TopicBanner>
|
|
|
</template>
|
|
|
<template class="article-item" #item="{ data }">
|
|
|
<ArticleItem2
|
...
|
...
|
@@ -27,7 +27,7 @@ |
|
|
<LayoutRecycleList v-if="topicInfo.viewModel == 1" :size="10" :thumbs="thumbs" ref="scroll" @scroll="onScroll" :offset="2000" :on-fetch="onFetch"
|
|
|
@on-inited="onInited">
|
|
|
<template class="article-item" #item="{ data }">
|
|
|
<TopicBanner v-if="data.data.topicHead" ref="topicHead" :data="topicInfo" @on-follow="onFollowTopic"></TopicBanner>
|
|
|
<TopicBanner v-if="data.data.topicHead" ref="topicHead" :data="topicInfo" :share="share" @on-follow="onFollowTopic"></TopicBanner>
|
|
|
<ArticleItem
|
|
|
v-else
|
|
|
type="topic"
|
...
|
...
|
@@ -50,7 +50,7 @@ |
|
|
</template>
|
|
|
</LayoutRecycleList>
|
|
|
|
|
|
<a v-if="publishUrl" class="publish-btn hover-opacity" :class="{'scroll-opacity': scrolling}" :href="publishUrl">
|
|
|
<a v-if="publishUrl && !share" class="publish-btn hover-opacity" :class="{'scroll-opacity': scrolling}" :href="publishUrl">
|
|
|
<span class="avatar-block">
|
|
|
<WidgetAvatar class="avatar" :src="userHeadIco" :width="70" :height="70"></WidgetAvatar>
|
|
|
</span>
|
...
|
...
|
@@ -112,6 +112,10 @@ export default { |
|
|
next();
|
|
|
},
|
|
|
mounted() {
|
|
|
if (this.$route.name === 'topic.share') {
|
|
|
this.share = true;
|
|
|
}
|
|
|
|
|
|
if (this.$cookie && this.$cookie.get) {
|
|
|
this.userHeadIco = this.$cookie.get('_head_ico');
|
|
|
}
|
...
|
...
|
|