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 | 41 +++++++++++++++++++++++++++-------------- 1 files changed, 27 insertions(+), 14 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs index cba96cc..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; @@ -111,7 +118,7 @@ Y = Application.GetRealHeight(46), Width = Application.GetRealWidth(6), Height = Application.GetRealWidth(6), - BackgroundColor = CSS_Color.MainColor, + BackgroundColor = CSS_Color.LinkTipFail, Radius = (uint)Application.GetRealWidth(3), }; topView.AddChidren(btnLinkStateTip); @@ -136,12 +143,9 @@ { System.Threading.Tasks.Task.Run(() => { - DriverLayer.Control.ins.ChangeCommunicationMode(DriverLayer.CommunicationMode.local_BusUdp); - UdpSocket._BusSocket.SearchNetDeviceAction = (revIp) => - { - MainPage.Log($"鎼滅储鍒扮綉缁滆澶囷細{revIp}"); - }; - DriverLayer.Control.ins.myUdp.ReadGatewayIP(); + DriverLayer.Control.Ins.OpenUdp(6000); + //DB_ResidenceData.residenceData.GatewayType = 0; + //DriverLayer.Control.Ins.SearchLoaclGateway(); }); }; #endif @@ -231,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), @@ -250,7 +254,7 @@ }; msgView.AddChidren(btnMsgIcon); - Button btnMsg; + btnMsg = new Button() { X = Application.GetRealWidth(10) + btnMsgIcon.Right, @@ -262,7 +266,7 @@ }; msgView.AddChidren(btnMsg); - Button btnMsgTime; + btnMsgTime = new Button() { X = Application.GetRealWidth(299), @@ -272,6 +276,9 @@ TextAlignment = TextAlignment.CenterLeft, }; msgView.AddChidren(btnMsgTime); + + LoadEvent_GotoMessageCenterPage(); + #endregion #endregion @@ -349,6 +356,12 @@ { MainPage.Log($"HomePage LoadPage Error : {ex.Message}"); } + + + System.Threading.Tasks.Task.Run(() => + { + //DriverLayer.Control.Ins.SearchLoaclGateway(); + }); } /// <summary> @@ -700,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