From 1265d531759b5565e9f641b17045896b52dfdba8 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 03 十二月 2020 18:37:47 +0800
Subject: [PATCH] 2020-12-03 1.主页增加未读消息查询和提示处理。2.房间和场景背景上传和下载和读取方法修改处理。3.头像上传和下载方案修改处理。4.增加子账号头像下载。5.Loading 调用方法修复。6.封装ImageUtlis 图片上传和下载管理工具类 7.读取本地住宅增加判空处理。

---
 HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePageBLL.cs |   50 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePageBLL.cs
index c741f27..67be6d5 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePageBLL.cs
@@ -14,6 +14,8 @@
             LoadEvent_SkipRoomsPage();
             LoadEvent_EditResidencName();
             LoadEvent_EditResidencAddress();
+            //LoadEvent_SkipAdminMigrationConfirmPage();
+            //LoadEvent_SkipTransferConfirmPage();
         }
 
         /// <summary>
@@ -38,6 +40,7 @@
                     //DB_ResidenceData.residenceData.residecenInfo.Name = str;
 
                     var waitPage = new Loading();
+                    bodyView.AddChidren(waitPage);
                     waitPage.Start(Language.StringByID(StringId.PleaseWait));
                     new System.Threading.Thread(() =>
                     {
@@ -45,7 +48,7 @@
                         {
                             var responsePack = new HttpServerRequest().EditResidenceInfo(0, str);
 
-                            if (responsePack.Code.ToUpper() == StateCode.SUCCESS)
+                            if (responsePack.Code == StateCode.SUCCESS)
                             {
                                 Application.RunOnMainThread(() =>
                                 {
@@ -70,7 +73,11 @@
                         {
                             Application.RunOnMainThread(() =>
                             {
-                                waitPage.Hide();
+                                if (waitPage != null)
+                                {
+                                    waitPage.RemoveFromParent();
+                                    waitPage = null;
+                                }
                             });
                         }
                     })
@@ -81,6 +88,7 @@
             btnResidenceName.MouseUpEventHandler = eventHandler;
             btnEditResidenceNameIcon.MouseUpEventHandler = eventHandler;
         }
+
         /// <summary>
         /// 鍔犺浇淇敼浣忓畢鍦板潃浜嬩欢
         /// </summary>
@@ -207,5 +215,43 @@
                 //{ IsBackground = true }.Start();
             };
         }
+
+        /// <summary>
+        /// 璺宠浆绠$悊鍛樻潈闄愯縼绉婚〉闈�
+        /// </summary>
+        void LoadEvent_SkipAdminMigrationConfirmPage()
+        {
+            EventHandler<MouseEventArgs> eventHandler = (sender, e) => {
+                var skipPage = new AdminMigrationConfirmPage();
+                MainPage.BasePageView.AddChidren(skipPage);
+                skipPage.LoadPage();
+                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+            };
+
+            administratorPermissionMigrationRow.MouseUpEventHandler = eventHandler;
+            btnAdministratorPermissionMigrationTitle.MouseUpEventHandler = eventHandler;
+            btnAdministratorPermissionMigrationExplan.MouseUpEventHandler = eventHandler;
+            btnAdministratorPermissionMigrationSkinIcon.MouseUpEventHandler = eventHandler;
+        }
+
+        /// <summary>
+        /// 璺宠浆杩囨埛椤甸潰
+        /// </summary>
+        void LoadEvent_SkipTransferConfirmPage()
+        {
+            EventHandler<MouseEventArgs> eventHandler = (sender, e) => {
+                var skipPage = new TransferConfirmPage();
+                MainPage.BasePageView.AddChidren(skipPage);
+                skipPage.LoadPage();
+                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+            };
+
+            transferRow.MouseUpEventHandler = eventHandler;
+            btnTrasferExplan.MouseUpEventHandler = eventHandler;
+            btnTrasferSkinIcon.MouseUpEventHandler = eventHandler;
+            btnTransferTitle.MouseUpEventHandler = eventHandler;
+        }
+
+
     }
 }

--
Gitblit v1.8.0