From 54c202bd4867092fca2bc6f96bec0cfd1056a46a Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期一, 06 十一月 2023 11:24:20 +0800 Subject: [PATCH] 2023年11月06日11:23:46 --- HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandFunctionListPage.cs | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandFunctionListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandFunctionListPage.cs index ea61167..bb118a5 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandFunctionListPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandFunctionListPage.cs @@ -121,7 +121,7 @@ Y = Application.GetRealHeight(667 - 80), Height = Application.GetRealHeight(90), Radius = (uint)Application.GetRealWidth(22), - Visible = false, + //Visible =false, }; bodyView.AddChidren(optionView); @@ -147,7 +147,7 @@ { if (pack.Code == StateCode.SUCCESS) { - btnComfirm.Visible = false; + optionView.Visible = false; } } //var pack = http.Set3tyIotFunctionToHouse(function.deviceId, "0", brand_Iot.companyId); @@ -317,16 +317,18 @@ Button btnClick = new Button(); view.AddChidren(btnClick); btnClick.MouseUpEventHandler = (sender, e) => { - btnCheckIcon.IsSelected = function.collect = !function.collect; if (optionList.Contains(function.deviceId)) { + btnCheckIcon.IsSelected = function.collect = false; optionList.Remove(function.deviceId); } else { + btnCheckIcon.IsSelected = function.collect = true; optionList.Add(function.deviceId); } - optionView.Visible = true; + + optionView.Visible =true; }; if (function.homeId == DB_ResidenceData.Instance.CurrentRegion.id ) { -- Gitblit v1.8.0