Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

代码建议:修正后台设置动态关闭付费选项后,H5端动态发图片仍显示付费开关 #527

Closed
mickeysu opened this issue Oct 1, 2018 · 1 comment
Assignees
Labels

Comments

@mickeysu
Copy link

mickeysu commented Oct 1, 2018

问题:目前后台设置动态关闭付费选项后,H5端发图片仍显示付费开关。
经排查PostImage.vue不正常,但PostText.vue是正常的。代码文件/src/page/post/PostImage.vue文件的修改建议如下:
1、v-switch标签增加属性v-if="paycontrol"如下::
<v-switch
v-if="paycontrol"
v-model="pinned"
class="m-box m-bt1 m-bb1 m-lim-width m-pinned-row"
type="checkbox">
<slot>是否收费</slot>
</v-switch>
2、computed下增加读取状态的代码:
computed: {
...mapGetters(["compose", "composePhoto"]),
//******** 读取状态 *************
paycontrol() {
return this.$store.state.CONFIG.feed.paycontrol;
},
//*********************************

@mickeysu mickeysu changed the title 代码建议:修正后台设置动态关闭付费选项后,H5端仍显示付费开关 代码建议:修正后台设置动态关闭付费选项后,H5端动态发图片仍显示付费开关 Oct 1, 2018
@mutoe mutoe self-assigned this Oct 6, 2018
@mutoe
Copy link
Contributor

mutoe commented Oct 8, 2018

@mickeysu 感谢反馈,将在下个版本修复

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants