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

Commit

Permalink
fix: 修正积分展示字段
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonleex committed Apr 18, 2018
1 parent 25b9d03 commit 2987a61
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/page/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<use xlink:href="#profile-wallet"></use>
</svg>
<span class="m-text-box m-flex-grow1">钱包</span>
<span class="m-entry-extra">{{ balance }}</span>
<span class="m-entry-extra">{{ new_balance }}</span>
<svg class="m-style-svg m-svg-def m-entry-append">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#base-arrow-r"></use>
</svg>
Expand All @@ -98,7 +98,7 @@
<use xlink:href="#profile-integral"></use>
</svg>
<span class="m-text-box m-flex-grow1">积分</span>
<span class="m-entry-extra">{{ new_balance }}</span>
<span class="m-entry-extra">{{ sum }}</span>
<svg class="m-style-svg m-svg-def m-entry-append">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#base-arrow-r"></use>
</svg>
Expand Down Expand Up @@ -143,17 +143,17 @@ export default {
extra() {
return this.user.extra || {};
},
wallet() {
return this.user.wallet || {};
},
new_wallet() {
return this.user.new_wallet || {};
},
new_balance() {
return (~~this.new_wallet.balance).toFixed(2);
return this.new_wallet.balance.toFixed(2);
},
currency() {
return this.user.currency || {};
},
balance() {
return (~~this.wallet.balance).toFixed(2);
sum() {
return this.currency.sum.toFixed(2);
},
verified() {
return this.user.verified;
Expand Down

0 comments on commit 2987a61

Please sign in to comment.