From 66a9965c44ecc32a6696abca876ab9d1cd091584 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期五, 28 二月 2020 15:25:13 +0800 Subject: [PATCH] 2020.2.28 --- ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs index 0b59be3..f594023 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs @@ -1070,10 +1070,6 @@ tag = true; custompushFrameLayout.Height = Application.GetRealHeight(160); Common.Logic.CurrentLogic.LogicIsCustomPushText = 1; - if (Common.Logic.CurrentLogic.LogicId != 0) - { - Send.Data("娣诲姞/鏇存柊", "/App/HomeLogicConfig", "POST"); - } } else @@ -1081,20 +1077,20 @@ tag = false; custompushFrameLayout.Height = Application.GetRealHeight(0); Common.Logic.CurrentLogic.LogicIsCustomPushText = 0; - if (Common.Logic.CurrentLogic.LogicId != 0) - { - Send.Data("鍒犻櫎", "/App/DelHomeLogicConfig", "POST"); - } - } + Send.Zj(tag, Common.Logic.CurrentLogic); }; if (Common.Logic.CurrentLogic.LogicIsCustomPushText == 0) { + tag = false; btnswitch.IsSelected = false; + custompushFrameLayout.Height = Application.GetRealHeight(0); } else { + tag = true; btnswitch.IsSelected = true; + custompushFrameLayout.Height = Application.GetRealHeight(160); } var saveFrameLayout = new FrameLayout { @@ -1148,7 +1144,7 @@ Common.Logic.LockLogicList.Add(Common.Logic.CurrentLogic); if (tag) { - Send.Data("娣诲姞/鏇存柊", "/App/HomeLogicConfig", "POST"); + Send.Zj(tag, Common.Logic.CurrentLogic); } } } -- Gitblit v1.8.0