From bd46c57c77c276014db3192a4e2cc96e23c93202 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 21 二月 2020 13:08:47 +0800
Subject: [PATCH] 先上传个版本吧

---
 ZigbeeApp/Shared/Phone/Device/Logic/LogicCommunalPage.cs |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicCommunalPage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicCommunalPage.cs
index b70c646..4be4e81 100755
--- a/ZigbeeApp/Shared/Phone/Device/Logic/LogicCommunalPage.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicCommunalPage.cs
@@ -60,7 +60,8 @@
             };
             topRowLayout.AddChidren(clickBtn);
             clickBtn.MouseDownEventHandler += (sender, e) =>
-            {
+            {
+                action();
                 RemoveFromParent();
             };
 
@@ -763,7 +764,7 @@
                                                 {
                                                     if (Common.Logic.CurrentLogic.Accounts[a]["UserId"] == conditions["AttriButeData2"])
                                                     {
-                                                        devicestatus.Text = Common.Logic.CurrentLogic.Accounts[a]["Account"];
+                                                        devicestatus.Text = Common.Logic.CurrentLogic.Accounts[a]["AccountName"];
                                                         break;
 
                                                     }
@@ -1984,7 +1985,7 @@
             custompushback.MouseUpEventHandler += customclick;
             custompushRowLayout.MouseUpEventHandler += customclick;
             bool tag = false;//鏍囪寮�鍏崇姸鎬�;
-            btnswitch.MouseUpEventHandler += (sender1, e1) =>
+            btnswitch.MouseUpEventHandler +=(sender1, e1) =>
               {
                   btnswitch.IsSelected = !btnswitch.IsSelected;
                   if (btnswitch.IsSelected)
@@ -1992,10 +1993,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
@@ -2003,20 +2000,21 @@
                       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);
             }
             #endregion
 
@@ -2056,7 +2054,7 @@
                         Common.Logic.LogicList.Add(Common.Logic.CurrentLogic);
                         if (tag)
                         {
-                            Send.Data("娣诲姞/鏇存柊", "/App/HomeLogicConfig", "POST");
+                            Send.Zj(tag, Common.Logic.CurrentLogic);
                         }
                     }
                 }

--
Gitblit v1.8.0