|
@@ -4,6 +4,11 @@
|
|
<pre v-html="content.contentHighlighted"></pre>
|
|
<pre v-html="content.contentHighlighted"></pre>
|
|
</section>
|
|
</section>
|
|
<AttachmentDownloadCard class="attachment-download-section" />
|
|
<AttachmentDownloadCard class="attachment-download-section" />
|
|
|
|
+ <div></div>
|
|
|
|
+ <Reward
|
|
|
|
+ :beforeLeavePage="beforeLeavePage"
|
|
|
|
+ v-if="rewardShow"
|
|
|
|
+ :id="content.id" />
|
|
<section class="others-footer">
|
|
<section class="others-footer">
|
|
<div class="origin-link-container">
|
|
<div class="origin-link-container">
|
|
<OriginLink :id="content.id" v-if="content.originalShow" />
|
|
<OriginLink :id="content.id" v-if="content.originalShow" />
|
|
@@ -18,6 +23,7 @@
|
|
import ContentModuleCard from '@/views/article/ui/ContentModuleCard.vue'
|
|
import ContentModuleCard from '@/views/article/ui/ContentModuleCard.vue'
|
|
import AttachmentDownloadCard from '@/views/article/components/AttachmentDownloadCard.vue'
|
|
import AttachmentDownloadCard from '@/views/article/components/AttachmentDownloadCard.vue'
|
|
import OriginLink from '@/views/article/components/OriginLink.vue'
|
|
import OriginLink from '@/views/article/components/OriginLink.vue'
|
|
|
|
+import Reward from '@/views/article/components/Reward.vue'
|
|
import { mapState, mapGetters } from 'vuex'
|
|
import { mapState, mapGetters } from 'vuex'
|
|
import { LINKS } from '@/data'
|
|
import { LINKS } from '@/data'
|
|
import { openAppOrWxPage } from '@/utils/'
|
|
import { openAppOrWxPage } from '@/utils/'
|
|
@@ -27,6 +33,7 @@ export default {
|
|
components: {
|
|
components: {
|
|
AttachmentDownloadCard,
|
|
AttachmentDownloadCard,
|
|
OriginLink,
|
|
OriginLink,
|
|
|
|
+ Reward,
|
|
ContentModuleCard
|
|
ContentModuleCard
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
@@ -36,6 +43,12 @@ export default {
|
|
...mapState({
|
|
...mapState({
|
|
content: (state) => state.article.mainModel.content
|
|
content: (state) => state.article.mainModel.content
|
|
}),
|
|
}),
|
|
|
|
+ canRead() {
|
|
|
|
+ return this.content.isCanRead
|
|
|
|
+ },
|
|
|
|
+ rewardShow() {
|
|
|
|
+ return this.canRead && this.$envs.inWX
|
|
|
|
+ },
|
|
...mapGetters('user', ['isLogin'])
|
|
...mapGetters('user', ['isLogin'])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|