From 7167334c0e89dd84827d59e726123d14776e3a09 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 16 六月 2020 11:14:13 +0800
Subject: [PATCH] 2020-06-16-1

---
 HDL_ON/UI/UI2/UserPage.cs |   58 ++++++++++++++++++++++++++++++++++++----------------------
 1 files changed, 36 insertions(+), 22 deletions(-)

diff --git a/HDL_ON/UI/UI2/UserPage.cs b/HDL_ON/UI/UI2/UserPage.cs
index 1fca242..ecaf192 100644
--- a/HDL_ON/UI/UI2/UserPage.cs
+++ b/HDL_ON/UI/UI2/UserPage.cs
@@ -1,4 +1,5 @@
 锘縰sing System;
+using HDL_ON.Entity;
 using Shared;
 
 namespace HDL_ON.UI
@@ -94,31 +95,44 @@
 
         public void LoadPage()
         {
-            bodyView = this;
-            bodyView.BackgroundColor = CSS.CSS_Color.MainBackgroundColor;
-            ContextView = new FrameLayout()
+            try
             {
-                Height = Application.GetRealHeight(618+20),
-                BackgroundColor = CSS.CSS_Color.BackgroundColor,
-            };
-            bodyView.AddChidren(ContextView);
+                bodyView = this;
+                bodyView.BackgroundColor = CSS.CSS_Color.MainBackgroundColor;
+                ContextView = new FrameLayout()
+                {
+                    Height = Application.GetRealHeight(618 + 20),
+                    BackgroundColor = CSS.CSS_Color.BackgroundColor,
+                };
+                bodyView.AddChidren(ContextView);
 
-            navigationView = new FrameLayout()
-            {
-                Y = Application.GetRealHeight(607),
-                Height = Application.GetMinRealAverage(60),
-            };
-            bodyView.AddChidren(navigationView);
-            if (MainPage.Increase)
-            {
-                //ContextView.Height = Application.GetRealHeight(618 + 20);
-                navigationView.Y = Application.GetRealHeight(597+5);
-                navigationView.Height = Application.GetRealHeight(70-5);
+                navigationView = new FrameLayout()
+                {
+                    Y = Application.GetRealHeight(607),
+                    Height = Application.GetMinRealAverage(60),
+                };
+                bodyView.AddChidren(navigationView);
+                if (MainPage.Increase)
+                {
+                    //ContextView.Height = Application.GetRealHeight(618 + 20);
+                    navigationView.Y = Application.GetRealHeight(597 + 5);
+                    navigationView.Height = Application.GetRealHeight(70 - 5);
+                }
+                InitBottomView();
+
+                LoadEventList();
+
+                var homePage = new HomePage();
+                ContextView.AddChidren(homePage);
+                homePage.LoadPage();
+
+                //鍒锋柊鍔熻兘鐘舵��
+                DB_ResidenceData.residenceData.RefreshResidenceFunctionStatus();
             }
-
-            InitBottomView();
-
-            LoadEventList();
+            catch (Exception ex)
+            {
+                MainPage.Log($"UserPage error {ex.Message}");
+            }
         }
 
         /// <summary>

--
Gitblit v1.8.0