From 1a4b95a7ebef71838bd3eda2c22056bbf0db65ec Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 10 一月 2020 16:39:54 +0800
Subject: [PATCH] 2019阶段备份

---
 HDL_ON/UI/UI2/4-PersonalCenter/UI/PersonalCenterPage.cs |   26 ++++++++++++++------------
 1 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/UI/PersonalCenterPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/UI/PersonalCenterPage.cs
index 436605c..2685bad 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/UI/PersonalCenterPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/UI/PersonalCenterPage.cs
@@ -3,7 +3,7 @@
 using HDL_ON.UI.CSS;
 using HDL_ON.UI;
 
-namespace HDL_ON.UI2
+namespace HDL_ON.UI
 {
     public partial class PersonalCenterPage : FrameLayout
     {
@@ -177,9 +177,9 @@
             #region 涓汉淇℃伅
             topbg = new FrameLayout()
             {
-                Y = Application.GetRealHeight(-10),
-                Height = Application.GetRealHeight(150),
-                Radius = 12,
+                Y = Application.GetRealHeight(-20),
+                Height = Application.GetRealHeight(160),
+                Radius = 16,
                 BorderColor = 0x00FFFFFF,
                 BorderWidth = 0,
                 BackgroundColor = CSS_Color.MainColor,
@@ -206,10 +206,13 @@
                 TextAlignment = TextAlignment.Center,
                 TextColor = CSS_Color.FirstLevelTitleColor,
                 TextSize = CSS_FontSize.SubheadingFontSize,
-                Text = MainPage.LoginUser.UserName,
+                Text = string.IsNullOrEmpty(MainPage.LoginUser.UserName) ? "涓嶆効鎰忛�忛湶濮撳悕鐨勭敤鎴�" : MainPage.LoginUser.UserName
             };
             personalInfoView.AddChidren(btnUserName);
-
+            if (!string.IsNullOrEmpty(MainPage.LoginUser.UserName))
+            {
+                btnUserName.Text = MainPage.LoginUser.UserName;
+            }
             btnEmail = new Button()
             {
                 Y = btnUserName.Bottom,
@@ -272,19 +275,19 @@
                 Height = Application.GetMinRealAverage(16),
                 X = Application.GetRealWidth(16),
                 Y = Application.GetRealHeight(25),
-                UnSelectedImagePath = "PersonalCenter/DownIcon.png",
+                UnSelectedImagePath = "0Common/DownIcon.png",
             };
             residenceInfoView.AddChidren(btnResidenceDownIcon);
 
             btnCurResidenceName = new Button() {
                 X = btnResidenceDownIcon.Right+ Application.GetRealWidth(1),
                 Y = Application.GetRealHeight(10),
-                Width = Application.GetRealWidth(120),
+                Width = Application.GetRealWidth(240),
                 Height = Application.GetRealHeight(45),
                 TextAlignment = TextAlignment.CenterLeft,
                 TextColor = CSS_Color.FirstLevelTitleColor,
                 TextSize = CSS_FontSize.EmphasisFontSize_FirstLevel,
-                Text = UserConfig.Instance.CurrentRegion.RegionName,
+                Text = UserConfig.Instance.CurrentRegion.Name,
             };
             residenceInfoView.AddChidren(btnCurResidenceName);
 
@@ -595,9 +598,6 @@
                 residenceAuxiliaryFunctionView.AddChidren(residenceAuxiliaryFunctionText);
                 #endregion
 
-                
-
-
             }
             #endregion
 
@@ -720,6 +720,8 @@
 
             #endregion
 
+
+            LoadEventList();
         }
     }
 }

--
Gitblit v1.8.0