JLChen
2021-11-30 efad979b6fae76fb37a4de7e94e6bac0a85cb72c
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs
@@ -63,7 +63,11 @@
                        {
                            Application.RunOnMainThread(() =>
                            {
                                waitPage.Hide();
                                if (waitPage != null)
                                {
                                    waitPage.RemoveFromParent();
                                    waitPage = null;
                                }
                            });
                        }
                    })
@@ -72,7 +76,7 @@
                new PublicAssmebly().TipOptionMsg(StringId.Tip, StringId.DeleteRoomTip, action);
            };
        }
        /// <summary>
        /// 显示背景图选择选项
@@ -105,7 +109,7 @@
                }
                btnRoomName.Text = str;
                room.roomName = str;
                room.SaveRoomData();
                room.UpdataRoomInfo();
            };
            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
            {
@@ -131,7 +135,7 @@
                Action floorsCallBackAction = () =>
                {
                    btnFloorInfo.Text = room.floorName;
                    room.SaveRoomData();
                    room.UpdataRoomInfo();
                };
                var residentialManagePage = new RoomBinglingFloorPage(floorsCallBackAction, room);
                MainPage.BasePageView.AddChidren(residentialManagePage);
@@ -253,8 +257,10 @@
                Action<string> action = (obj) =>
                {
                    room.backgroundImage = obj;
                    btnRoomBg.ImageBytes = null;//解决有ImageBytes不加载ImagePath
                    btnRoomBg.ImagePath = room.backgroundImage;
                    room.SaveRoomData();
                    room.UpdataRoomInfo();
                    modifyImageAction?.Invoke();
                };
                var galleryPage = new RoomGalleryPage(room.backgroundImage, action);
@@ -281,7 +287,8 @@
            {
                //2020-12-03 需要讲最新的图片路径同步到云端
                room.backgroundImage = imageUrl;
                room.SaveRoomData();
                room.UpdataRoomInfo();
                modifyImageAction?.Invoke();
            };
            //上传图片到云端
            UploadImage(selectImagePath, btnRoomBg, room, uploadSuccessAction);