From 544db13e822451fe472b6b13e32ac693f4f6c1ef Mon Sep 17 00:00:00 2001 From: xxe Date: Tue, 13 Sep 2022 16:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=85=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HKCardIN/Logic/Model/UserAndCardInfo.cs | 1 + HKCardIN/Views/RootView.xaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HKCardIN/Logic/Model/UserAndCardInfo.cs b/HKCardIN/Logic/Model/UserAndCardInfo.cs index d2ab8b3..bce0d21 100644 --- a/HKCardIN/Logic/Model/UserAndCardInfo.cs +++ b/HKCardIN/Logic/Model/UserAndCardInfo.cs @@ -16,5 +16,6 @@ namespace HKCardIN.Logic.Model public int CardState { get; set; } public string Stutas => CardState == 0 ? "禁用" : (CardState == 1 ? "正常" : (CardState == 2 ? "挂失" : "作废")); public decimal Money { get; set; } + public DateTime CreateAt { get; set; } } } diff --git a/HKCardIN/Views/RootView.xaml b/HKCardIN/Views/RootView.xaml index df29454..e2a77d5 100644 --- a/HKCardIN/Views/RootView.xaml +++ b/HKCardIN/Views/RootView.xaml @@ -203,7 +203,7 @@ FontSize="18" Foreground="Red" Style="{StaticResource TextBlockDefaultBold}" - Text="2021-01-01" /> + Text="{Binding Info.CreateAt, StringFormat={}{0:yyyy-MM-dd}}" />