File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 80
80
<span >{{ feed.feed_view_count || 0 | formatNum }}浏览</span >
81
81
</div >
82
82
</div >
83
- <div class =" m-box-model m-box-center m-box-center-a m-art-reward" >
83
+ <div v-if = " allowReward " class =" m-box-model m-box-center m-box-center-a m-art-reward" >
84
84
<button class =" m-art-rew-btn" @click =" rewardFeed" >打 赏</button >
85
85
<p class =" m-art-rew-label" ><a href =" javascript:;" >{{ reward.count | formatNum }}</a >人打赏,共<a href =" javascript:;" >{{ ~~reward.amount }}</a >{{ currencyUnit }}</p >
86
86
<RouterLink
@@ -173,6 +173,9 @@ export default {
173
173
},
174
174
computed: {
175
175
... mapState ([' CURRENTUSER' ]),
176
+ allowReward () {
177
+ return this .$store .state .CONFIG .site .reward .status
178
+ },
176
179
feedID () {
177
180
return this .$route .params .feedID
178
181
},
Original file line number Diff line number Diff line change 47
47
<span >{{ news.hits || 0 | formatNum }}浏览</span >
48
48
</div >
49
49
</div >
50
- <div class =" m-box-model m-box-center m-box-center-a m-art-reward" >
50
+ <div v-if = " allowReward " class =" m-box-model m-box-center m-box-center-a m-art-reward" >
51
51
<button class =" m-art-rew-btn" @click =" rewardNews" >打 赏</button >
52
52
<p class =" m-art-rew-label" >
53
53
<a href =" javascript:;" >{{ reward.count | formatNum }}</a >人打赏,共
@@ -180,6 +180,9 @@ export default {
180
180
},
181
181
computed: {
182
182
... mapState ([' CURRENTUSER' ]),
183
+ allowReward () {
184
+ return this .$store .state .CONFIG .site .reward .status
185
+ },
183
186
firstImage () {
184
187
let images = this .news .image
185
188
if (! Object .keys (images).length ) {
You can’t perform that action at this time.
0 commit comments