From 2987a6114154ce3449fc7dc4dd89fa1de9849c16 Mon Sep 17 00:00:00 2001 From: JsonLeex Date: Wed, 18 Apr 2018 18:45:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E7=A7=AF=E5=88=86?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/profile.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/page/profile.vue b/src/page/profile.vue index aa9e74b3..12405a79 100644 --- a/src/page/profile.vue +++ b/src/page/profile.vue @@ -88,7 +88,7 @@ 钱包 - {{ balance }} + {{ new_balance }} @@ -98,7 +98,7 @@ 积分 - {{ new_balance }} + {{ sum }} @@ -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;