From 9d65c293924e4edbbc8c6c6091f55d7fc49c23eb Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 06 七月 2021 13:15:46 +0800
Subject: [PATCH] 乐橙子账号token
---
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs | 49 +++++++++++++++++++++++++++++++------------------
1 files changed, 31 insertions(+), 18 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs
index d48d638..51e8ba0 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs
@@ -131,34 +131,44 @@
#endregion
Room room;
- int pageTitleId;
int rowCount = 1;
Action backAction;
- public RoomEditPage(Room r, int tId,Action action)
+ /// <summary>
+ /// 鍒犻櫎鎴块棿浜嬩欢
+ /// 2020-12-02 瑙e喅鍒犻櫎鎴块棿鍚庯紝鐣岄潰涓嶅埛鏂板垹闄ゆ埧闂撮棶棰�
+ /// </summary>
+ Action deleteAction;
+ /// <summary>
+ /// 鍥剧墖淇敼浜嬩欢
+ /// </summary>
+ Action modifyImageAction;
+
+ /// <summary>
+ ///
+ /// </summary>
+ /// <param name="r"></param>
+ /// <param name="action"></param>
+ /// <param name="delAction">鎴块棿鍒犻櫎浜嬩欢</param>
+ /// <param name="modifyImageAction">鎴块棿鑳屾櫙鍥句慨鏀逛簨浠跺洖璋�</param>
+ public RoomEditPage(Room r, Action action, Action delAction, Action modifyImageAction)
{
bodyView = this;
room = r;
- pageTitleId = tId;
backAction = action;
+ this.deleteAction = delAction;
+ this.modifyImageAction = modifyImageAction;
}
public void LoadPage()
{
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- if (pageTitleId == StringId.AddRoom)
- {
- new TopViewDiv(bodyView, Language.StringByID(pageTitleId)).LoadTopView();
- }
- else
- {
- new TopViewDiv(bodyView, Language.StringByID(pageTitleId)).LoadTopView(backAction);
- }
+ new TopViewDiv(bodyView, Language.StringByID(StringId.EditRoomInfo)).LoadTopView(backAction);
roomBgView = new FrameLayout()
{
Y = Application.GetRealHeight(64),
- Height = Application.GetRealHeight(224),
+ Height = Application.GetRealWidth(232),
BackgroundColor = CSS_Color.MainBackgroundColor,
};
bodyView.AddChidren(roomBgView);
@@ -168,13 +178,16 @@
Gravity = Gravity.CenterHorizontal,
Y = Application.GetRealWidth(20),
Width = Application.GetRealWidth(343),
- Height = Application.GetRealHeight(184),
+ Height = Application.GetRealWidth(192),//2020-12-01 鎴块棿鍥剧墖姣斾緥鏀瑰洖16:9
//UnSelectedImagePath = room.backgroundImage,
- ImagePath = room.backgroundImage,
+ //ImagePath = room.backgroundImage,
Radius = (uint)Application.GetRealWidth(12),
//Radius = (uint)Application.GetRealWidth(6),
};
roomBgView.AddChidren(btnRoomBg);
+
+ //2020-12-03 淇敼鍥剧墖鍔犺浇鏂规硶
+ ImageUtlis.Current.LoadLocalOrNetworkImages(room.backgroundImage, btnRoomBg);
//鎴块棿淇℃伅缂栬緫鍖哄煙
roomInfoView = new VerticalScrolViewLayout()
@@ -225,7 +238,7 @@
TextAlignment = TextAlignment.CenterRight,
TextColor = CSS_Color.PromptingColor1,
TextSize = CSS_FontSize.TextFontSize,
- Text = room.name
+ Text = room.roomName
};
roomNameRow.AddChidren(btnRoomName);
@@ -329,7 +342,7 @@
btnFunctionManagementTitle = new Button()
{
X = Application.GetRealWidth(16),
- Width = Application.GetRealWidth(120),
+ Width = Application.GetRealWidth(220),
TextAlignment = TextAlignment.CenterLeft,
TextColor = CSS_Color.FirstLevelTitleColor,
TextSize = CSS_FontSize.SubheadingFontSize,
@@ -355,8 +368,8 @@
Height = Application.GetRealHeight(50),
BackgroundColor = CSS_Color.MainBackgroundColor,
TextAlignment = TextAlignment.Center,
- TextColor = this.pageTitleId == StringId.AddRoom ? CSS_Color.MainColor : CSS_Color.WarningColor,
- TextID = this.pageTitleId == StringId.AddRoom ? StringId.Save : StringId.DeleteRoom,
+ TextColor = CSS_Color.WarningColor,
+ TextID = StringId.DeleteRoom,
TextSize = CSS_FontSize.SubheadingFontSize,
};
bodyView.AddChidren(btnOption);
--
Gitblit v1.8.0