From efad979b6fae76fb37a4de7e94e6bac0a85cb72c Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 30 十一月 2021 13:14:28 +0800 Subject: [PATCH] 2021-11-30 1.修复乐橙Android,没调用拒接接口问题。 --- HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs | 37 ++++++++++++++++++------------------- 1 files changed, 18 insertions(+), 19 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs index cf10768..b7d50e8 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs @@ -12,30 +12,20 @@ Action editBackAction; /// <summary> - /// 鍔犺浇浜嬩欢鍒楄〃 - /// </summary> - void LoadEventList() - { - - } - - /// <summary> /// 璺宠浆鍒板鍔犳埧闂寸殑鐣岄潰 /// </summary> void LoadEvent_SkipAddRoomPage() { - skipAddRoomAction = (type, floor) => + skipAddRoomAction = () => { - Room newRoom = new Room() { - uid = Guid.NewGuid().ToString(), - }; - editBackAction = () => { + Action<Room> addRoomBackAction = (newRoom) => + { LoadRoomRow(newRoom); }; - var skipPage = new RoomEditPage(newRoom, StringId.AddRoom,editBackAction); - MainPage.BasePageView.AddChidren(skipPage); - skipPage.LoadPage(); + var addRoomPage = new AddRoomPage(addRoomBackAction); + MainPage.BasePageView.AddChidren(addRoomPage); + addRoomPage.LoadPage(); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; }; } @@ -43,11 +33,11 @@ /// <summary> /// 璺宠浆鍒扮紪杈戞埧闂寸殑鐣岄潰 /// </summary> - void LoadEvent_SkipEditRoomPage(Room r, Button btnRoomName, ImageView btnBg) + void LoadEvent_SkipEditRoomPage(Room r, Button btnRoomName, ImageView btnBg, FrameLayout roomRow) { editBackAction = () => { - if (string.IsNullOrEmpty(r.uid)) + if (string.IsNullOrEmpty(r.roomId)) { for (int i = 0; i < roomsListView.ChildrenCount; ) { @@ -67,7 +57,16 @@ btnBg.ImagePath = r.backgroundImage; } }; - var skipPage = new RoomEditPage(r, StringId.EditRoomInfo,editBackAction); + + Action deleteAction = () => { + roomRow.RemoveFromParent(); + }; + + Action modifyImageAction = () => { + ImageUtlis.Current.LoadLocalOrNetworkImages(r.backgroundImage, btnBg); + }; + + var skipPage = new RoomEditPage(r, editBackAction, deleteAction, modifyImageAction); MainPage.BasePageView.AddChidren(skipPage); skipPage.LoadPage(); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; -- Gitblit v1.8.0