diff --git a/components/layouts/pc/header.vue b/components/layouts/pc/header.vue index 5d48e00..84e4cf5 100644 --- a/components/layouts/pc/header.vue +++ b/components/layouts/pc/header.vue @@ -90,7 +90,8 @@ 个人中心 - 每日一题 + 每日一题 + 每日一题(开通钱包账号激活) 我的草稿 我的钱包 设置 diff --git a/pages/article/_article_id.vue b/pages/article/_article_id.vue index 1a99618..b5f2aae 100644 --- a/pages/article/_article_id.vue +++ b/pages/article/_article_id.vue @@ -95,7 +95,7 @@ {{ article.articleThumbsUpCount }} - + diff --git a/pages/wallet.vue b/pages/wallet.vue index 5be2f1a..b266b02 100644 --- a/pages/wallet.vue +++ b/pages/wallet.vue @@ -8,15 +8,21 @@ 账号: {{ bankAccount.bankAccount }} - + - 开通钱包账号 +

+ 钱包 是社区非常重要的组成部分
+ 开通钱包账号后可激活 每日一题 , 赞赏 等功能 +

+ 现在开通
@@ -28,7 +34,8 @@ import Records from "../components/common/bank/account/records"; export default { name: "wallet", components: {Records}, - fetch({store, error}) { + fetch() { + let {store, error} = this.$nuxt.context return Promise.all([ store .dispatch('wallet/fetchDetail') @@ -45,8 +52,7 @@ export default { }) }, data() { - return { - } + return {} }, methods: { handleCurrentChange(search) { @@ -67,6 +73,14 @@ export default { startDate: startDate, endDate: endDate }) + }, + createBankAccount() { + let _ts = this + _ts.$axios.$post('/api/wallet/create').then(function (res) { + if (res) { + _ts.$fetch() + } + }) } }, mounted() { @@ -80,4 +94,8 @@ export default { font-size: 32px; padding-left: 15vw; } +code { + color: red; + font-weight: bold; +}