From 8060dedbec31cc9dbc33adae91b94b8a977c7163 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期一, 30 十一月 2020 21:22:55 +0800
Subject: [PATCH] 2020-11-30 1.增加极光推送。2.住宅相关接口增加签名校验。 3.增加消息中心页面。4.UI优化。5.裁剪选取图片优化。

---
 HDL_ON/UI/UI2/1-HomePage/HomePage.cs |   32 +++++++++++++++++++++-----------
 1 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
index 3b857f1..773396f 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -80,6 +80,13 @@
         bool CurShowTypeIsFunction = true;
         #endregion
 
+        #region 鎶ヨ淇℃伅
+        Button btnMsgBg;
+        Button btnMsgTime;
+        Button btnMsg;
+        Button btnMsgIcon;
+        #endregion
+
         public HomePage()
         {
             bodyView = this;
@@ -136,8 +143,9 @@
                 {
                     System.Threading.Tasks.Task.Run(() =>
                         {
-                            DB_ResidenceData.residenceData.GatewayType = 0;
-                            DriverLayer.Control.Ins.SearchLoaclGateway();
+                            DriverLayer.Control.Ins.OpenUdp(6000);
+                            //DB_ResidenceData.residenceData.GatewayType = 0;
+                            //DriverLayer.Control.Ins.SearchLoaclGateway();
                         });
                 };
 #endif
@@ -227,14 +235,14 @@
                 };
                 topView.AddChidren(msgView);
 
-                var btngb = new Button()
+                btnMsgBg = new Button()
                 {
                     BackgroundColor = CSS_Color.MainColor,//0x3F4484F4,
                     Alpha = 0.4f,
                 };
-                msgView.AddChidren(btngb);
+                msgView.AddChidren(btnMsgBg);
 
-                Button btnMsgIcon;
+              
                 btnMsgIcon = new Button()
                 {
                     X = Application.GetRealWidth(12),
@@ -246,7 +254,7 @@
                 };
                 msgView.AddChidren(btnMsgIcon);
 
-                Button btnMsg;
+               
                 btnMsg = new Button()
                 {
                     X = Application.GetRealWidth(10) + btnMsgIcon.Right,
@@ -258,7 +266,7 @@
                 };
                 msgView.AddChidren(btnMsg);
 
-                Button btnMsgTime;
+             
                 btnMsgTime = new Button()
                 {
                     X = Application.GetRealWidth(299),
@@ -268,6 +276,9 @@
                     TextAlignment = TextAlignment.CenterLeft,
                 };
                 msgView.AddChidren(btnMsgTime);
+
+                LoadEvent_GotoMessageCenterPage();
+
                 #endregion
 
                 #endregion
@@ -349,8 +360,7 @@
 
             System.Threading.Tasks.Task.Run(() =>
             {
-                DB_ResidenceData.residenceData.GatewayType = 0;
-                DriverLayer.Control.Ins.SearchLoaclGateway();
+                //DriverLayer.Control.Ins.SearchLoaclGateway();
             });
         }
 
@@ -703,14 +713,14 @@
                             btnPower.IsSelected = false;
                             Music.SendMethod.Pause(a31player);
                             a31player.A31PlayStatus.status = "pause";
-                            a31player.trait_on_off.value = "off";
+                            a31player.trait_on_off.curValue = "off";
                         }
                         else
                         {
                             btnPower.IsSelected = true;
                             Music.SendMethod.Play(a31player);
                             a31player.A31PlayStatus.status = "play";
-                            a31player.trait_on_off.value = "on";
+                            a31player.trait_on_off.curValue = "on";
                         }
                         UpdataFunctionStates(a31player);
                     };

--
Gitblit v1.8.0