Skip to content

Commit

Permalink
fix(SPA): 修复投稿时付费失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Dec 1, 2018
1 parent 87b009c commit 540ace8
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions resources/spa/src/page/post/PostNews.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@
v-for="tag in tags"
:key="tag.id"
class="m-tag"
>
{{ tag.name }}
</span>
v-text="tag.name"
/>
</div>
<div v-else class="m-box m-justify-end placeholder">
<span>最多选择5个标签</span>
Expand Down Expand Up @@ -231,7 +230,7 @@ export default {
...mapState({
newsConfig: state => state.CONFIG.news,
newsPay: state => state.CONFIG.news.contribute.pay,
newCurrency: state => state.CONFIG.news.pay_conyribute,
newCurrency: state => state.CONFIG.news.pay_contribute,
verified: state => state.CURRENTUSER.verified,
}),
currentCurrency () {
Expand Down Expand Up @@ -298,17 +297,8 @@ export default {
},
switchTags () {
const chooseTags = this.tags.map(t => t.id)
/**
* 打开选择标签页面 (钩子 -> "choose-tags")
* @author jsonleex <[email protected]>
* @param {Object} { nextStep, chooseTags }
* nextStep {Function} 点击下一步的回调, 注入已选择的 tags
* chooseTags {Object} 初始选择值, 只需传 [tag.id], eg: [1, 2, 3,...]
*/
this.$bus.$emit('choose-tags', {
nextStep: tags => {
this.tags = tags
},
nextStep: tags => void (this.tags = tags),
chooseTags,
})
},
Expand Down

0 comments on commit 540ace8

Please sign in to comment.