From adc150efb13a0506f45a3c344c3ee2ef2dba8e90 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 01 七月 2021 15:19:13 +0800
Subject: [PATCH] 合并嘉乐lc代码

---
 HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs
index 4b4d2fe..25a6f44 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs
@@ -64,6 +64,7 @@
                             Application.RunOnMainThread(() =>
                             {
                                 waitPage.Hide();
+                                waitPage.RemoveFromParent();
                             });
                         }
                     })
@@ -72,7 +73,7 @@
                 new PublicAssmebly().TipOptionMsg(StringId.Tip, StringId.DeleteRoomTip, action);
             };
         }
-            
+
 
         /// <summary>
         /// 鏄剧ず鑳屾櫙鍥鹃�夋嫨閫夐」
@@ -105,7 +106,7 @@
                 }
                 btnRoomName.Text = str;
                 room.roomName = str;
-                room.SaveRoomData();
+                room.UpdataRoomInfo();
             };
             EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
             {
@@ -131,7 +132,7 @@
                 Action floorsCallBackAction = () =>
                 {
                     btnFloorInfo.Text = room.floorName;
-                    room.SaveRoomData();
+                    room.UpdataRoomInfo();
                 };
                 var residentialManagePage = new RoomBinglingFloorPage(floorsCallBackAction, room);
                 MainPage.BasePageView.AddChidren(residentialManagePage);
@@ -253,8 +254,10 @@
                 Action<string> action = (obj) =>
                 {
                     room.backgroundImage = obj;
+                    btnRoomBg.ImageBytes = null;//瑙e喅鏈塈mageBytes涓嶅姞杞絀magePath
                     btnRoomBg.ImagePath = room.backgroundImage;
-                    room.SaveRoomData();
+                    room.UpdataRoomInfo();
+                    modifyImageAction?.Invoke();
                 };
 
                 var galleryPage = new RoomGalleryPage(room.backgroundImage, action);
@@ -281,7 +284,8 @@
             {
                 //2020-12-03 闇�瑕佽鏈�鏂扮殑鍥剧墖璺緞鍚屾鍒颁簯绔�
                 room.backgroundImage = imageUrl;
-                room.SaveRoomData();
+                room.UpdataRoomInfo();
+                modifyImageAction?.Invoke();
             };
             //涓婁紶鍥剧墖鍒颁簯绔�
             UploadImage(selectImagePath, btnRoomBg, room, uploadSuccessAction);

--
Gitblit v1.8.0