From 203c3a3ffde6259413d9743f6a723b95b1e7989c Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 06 七月 2023 22:43:05 +0800 Subject: [PATCH] 门锁功能 --- HDL_ON/UI/UI2/1-HomePage/HomePage.cs | 25 ++++++++++++++++--------- 1 files changed, 16 insertions(+), 9 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs index 4f2d2b4..49647e1 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs @@ -117,6 +117,11 @@ bodyView.BackgroundColor = CSS_Color.BackgroundColor; this.VerticalScrollBarEnabled = false; + +#if DEBUG + DB_ResidenceData.Instance.HomeGateway.isSupportGroupControl = true; +#endif + #if __IOS__ //鑷姩鍋忕Щ鍙栨秷 if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) @@ -455,7 +460,8 @@ }; btnPm25Values.Width = btnPm25Values.GetTextWidth(); environmentalView.AddChidren(btnPm25Values); -#endregion + #endregion + btnSecurityStatus = new Button() { @@ -604,9 +610,9 @@ TextAlignment = TextAlignment.Center, }; changeView.AddChidren(btnChangeScene); -#endregion + #endregion -#region ContextView + #region ContextView contentView = new PageLayout() { //Y = changeView.Bottom, @@ -619,7 +625,7 @@ LoadContentView(); -#endregion + #endregion } catch (Exception ex) { @@ -633,6 +639,7 @@ /// </summary> void LoadContentView() { + if (!Common.ApiUtlis.Ins.DownloadDataComplete && !MainPage.NoLoginMode) { var waitPage = new Loading(); @@ -1216,11 +1223,11 @@ btnIcon.UnSelectedImagePath = UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.GetVideoDoorLockIcon(UI2.FuntionControlView.VideoDoorLock.CommonMethod.Comerom.collect); //btnIcon.SelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_blue.png"; } - else if (function.spk == SPK.GroupControl) - { - btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/HomeIcon/lightswitch_blue.png"; - btnIcon.SelectedImagePath = $"FunctionIcon/Icon/HomeIcon/lightswitch_white.png"; - } + //else if (function.spk == SPK.GroupControl) + //{ + // btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/HomeIcon/lightswitch_blue.png"; + // btnIcon.SelectedImagePath = $"FunctionIcon/Icon/HomeIcon/lightswitch_white.png"; + //} else { Button btnSwitch; -- Gitblit v1.8.0