From 002a3f2e9d2f9579c01f88af12bd8a320003569f Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 31 三月 2020 08:57:19 +0800 Subject: [PATCH] 20200331 --- HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs | 46 +++++++++++++++++++++++++++++++++------------- 1 files changed, 33 insertions(+), 13 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs index 56aed70..fc85662 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs @@ -12,6 +12,9 @@ { LoadEvent_SwitchHome(); LoadEvent_GoPersonalDataPage(); + LoadEvent_SkipResdentialManagePage(); + + } @@ -41,9 +44,9 @@ var contentView = new VerticalScrolViewLayout() { X = Application.GetRealWidth(8), - Y = Application.GetRealHeight(16), - Width = Application.GetRealWidth(144), - Height = Application.GetRealHeight(45*4), + Y = Application.GetRealHeight(10), + Width = Application.GetRealWidth(150), + Height = Application.GetRealHeight(44*4), }; dispalyView.AddChidren(contentView); @@ -55,23 +58,26 @@ Width = Application.GetRealWidth(112), Height = Application.GetRealHeight(44), TextAlignment = TextAlignment.CenterLeft, - TextColor = UI.CSS.CSS_Color.MainBackgroundColor, - SelectedTextColor = UI.CSS.CSS_Color.MainColor, + TextColor = CSS.CSS_Color.FirstLevelTitleColor, + SelectedTextColor = CSS.CSS_Color.MainColor, Text = home.Name, - TextSize = UI.CSS.CSS_FontSize.SubheadingFontSize, + TextSize = CSS.CSS_FontSize.SubheadingFontSize, IsSelected = UserConfig.Instance.CurrentRegion.RegionID == home.RegionID, IsMoreLines = true, Tag = home }; contentView.AddChidren(btnHomeName); - var btnContentLine = new Button() + + if (MainPage.LoginUser.HomeLists.IndexOf(home) < MainPage.LoginUser.HomeLists.Count - 1) { - Gravity = Gravity.CenterHorizontal, - Width = Application.GetRealWidth(112), - Height = Application.GetRealHeight(1), - BackgroundColor = UI.CSS.CSS_Color.SecondLevelTitleColor - }; - contentView.AddChidren(btnContentLine); + contentView.AddChidren(new Button() + { + Gravity = Gravity.CenterHorizontal, + Width = Application.GetRealWidth(112), + Height = Application.GetRealHeight(1), + BackgroundColor = CSS.CSS_Color.BackgroundColor + }); + } btnHomeName.MouseUpEventHandler += (senderH, en) => { @@ -90,6 +96,20 @@ #endregion + #region 浣忓畢绠$悊 + void LoadEvent_SkipResdentialManagePage() + { + EventHandler<MouseEventArgs> eventHandler = (sender, e) => { + var residentialManagePage = new ResidentialManagePage(); + MainPage.BasePageView.AddChidren(residentialManagePage); + residentialManagePage.LoadPage(); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + }; + btnResidenceManageIcon.MouseUpEventHandler = eventHandler; + btnResidenceManageText.MouseUpEventHandler = eventHandler; + } + + #endregion #region 涓汉涓績 void LoadEvent_GoPersonalDataPage() -- Gitblit v1.8.0