diff --git a/UI/Models/DetailPageModel.cs b/UI/Models/DetailPageModel.cs
index 408ba78656cb8082677ee87cf6934c671faf7492..7ca16c93d664002803859e29a8dc56c51c4daa4b 100644
--- a/UI/Models/DetailPageModel.cs
+++ b/UI/Models/DetailPageModel.cs
@@ -67,5 +67,17 @@ namespace UI.Models
private Visibility CancelBlockBtnVisibility_ = Visibility.Collapsed;
public Visibility CancelBlockBtnVisibility { get { return CancelBlockBtnVisibility_; } set { CancelBlockBtnVisibility_ = value; OnPropertyChanged(); } }
+
+ private string TodayTime_;
+ ///
+ /// 今日使用时长
+ ///
+ public string TodayTime { get { return TodayTime_; } set { TodayTime_ = value; OnPropertyChanged(); } }
+
+ private string Yesterday_;
+ ///
+ /// 相比昨日
+ ///
+ public string Yesterday { get { return Yesterday_; } set { Yesterday_ = value; OnPropertyChanged(); } }
}
}
diff --git a/UI/ViewModels/DetailPageVM.cs b/UI/ViewModels/DetailPageVM.cs
index 70a3ba01afb4bf2e80d8f96d2d966910ac4be840..234729e33ed6b98ee20623d9974a07806cef71d1 100644
--- a/UI/ViewModels/DetailPageVM.cs
+++ b/UI/ViewModels/DetailPageVM.cs
@@ -3,9 +3,11 @@ using Core.Models.Config;
using Core.Servicers.Interfaces;
using System;
using System.Collections.Generic;
+using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using System.Windows;
using UI.Controls;
using UI.Controls.Charts.Model;
using UI.Librays;
@@ -22,7 +24,7 @@ namespace UI.ViewModels
private ConfigModel config;
public Command BlockActionCommand { get; set; }
public Command ClearSelectMonthDataCommand { get; set; }
-
+ public Command InfoMenuActionCommand { get; set; }
public DetailPageVM(
IData data, MainViewModel main, IAppConfig appConfig)
{
@@ -32,7 +34,7 @@ namespace UI.ViewModels
BlockActionCommand = new Command(new Action