From 135b394b2a8873af2491b4f9239706cb9c4035b4 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 23 Jul 2026 11:07:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20rt=5Fcard=5Famount=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E4=B8=BAamt|float,=E5=8E=BB=E6=8E=89if/else=E9=81=BF=E5=85=8Dj?= =?UTF-8?q?inja2=E8=BF=90=E7=AE=97=E6=AD=A7=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/rt_card_amount.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/rt_card_amount.ui b/wwwroot/rt_card_amount.ui index 98aec3d..1d739cc 100644 --- a/wwwroot/rt_card_amount.ui +++ b/wwwroot/rt_card_amount.ui @@ -1,2 +1,2 @@ {% set amt = j2_realtime_amount(request) %} -{"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"text":"今日交易金额","fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":{{json.dumps('¥' + ('%.2f' % amt) if amt else '¥0.00',ensure_ascii=False)}},"fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]} +{"widgettype":"VBox","options":{"css":"card","padding":"12px","borderRadius":"8px","width":"100%"},"subwidgets":[{"widgettype":"Text","options":{"text":"今日交易金额","fontSize":"11px","color":"var(--sage-text-secondary)"}},{"widgettype":"Text","options":{"text":{{json.dumps('¥' + ('%.2f' % (amt|float)), ensure_ascii=False)}},"fontWeight":"700","fontSize":"18px","marginTop":"4px"}}]}