Authored by yyq

fix

... ... @@ -29,7 +29,7 @@
</template>
</RecycleScrollReveal>
<a v-if="publishUrl && !share && !noShowPublish" class="publish-btn hover-opacity" :class="{'scroll-opacity': scrolling}" :href="publishUrl">
<a v-if="!share" class="publish-btn hover-opacity" :class="{'scroll-opacity': scrolling}" :href="publishUrl || 'javascript:;'" @click="toDownloadPage">
<span class="avatar-block">
<WidgetAvatar class="avatar" :src="yoho.context.userHeadIco" :width="70" :height="70"></WidgetAvatar>
</span>
... ... @@ -124,9 +124,6 @@ export default {
computed: {
...mapYohoState(['yoho']),
...mapState(['topicInfo']),
noShowPublish() {
return this.yoho.context.env.isChat;
},
topicSimpleInfo() {
return this.topicInfo[this.topicId] || {};
},
... ... @@ -287,6 +284,9 @@ export default {
this.CHANGE_TOPIC_FOLLOW({topicId: this.topicId, follow});
follow && this.reportTopicFollow();
},
toDownloadPage() {
!this.publishUrl && this.$links.toDownloadApp();
},
setPageShareInfo({topicName, topicImageUrl, topicDesc}) {
if (this.share) {
document && (document.title = topicName || '话题');
... ...