From f9359e37d4da1a3353547598890eb3f86e28bfed Mon Sep 17 00:00:00 2001 From: Jayson Albert Date: Sat, 28 Oct 2023 21:48:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D'=E6=88=91=E7=9A=84-?= =?UTF-8?q?=E4=BD=99=E9=A2=9D'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/user/index.vue b/pages/user/index.vue index fcf31d99..0c1ba113 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -32,7 +32,7 @@ - {{ userInfo.nowMoney ? Number(userInfo.nowMoney).toFixed(2) : 0 }} + {{ userInfo.nowMoney ? fen2yuan(userInfo.nowMoney) : 0 }} 余额 @@ -136,6 +136,7 @@ import * as ProductFavoriteApi from '@/api/product/favorite.js'; import * as CouponApi from '@/api/promotion/coupon.js'; import * as BrokerageAPI from '@/api/trade/brokerage.js' + import * as Util from '@/utils/util.js'; const app = getApp(); export default { computed: mapGetters(['isLogin', 'chatUrl', 'userInfo']), @@ -331,6 +332,9 @@ this.openAuto() // #endif } + }, + fen2yuan(price) { + return Util.fen2yuan(price) } } }