From 9c6bd67d66859e48f0e794cd2746aef9310ce71d Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期五, 13 十二月 2019 18:01:37 +0800 Subject: [PATCH] 2019-12-13-2 --- ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs | 26 +++++++++----------------- 1 files changed, 9 insertions(+), 17 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs b/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs index a7232bc..bfdbd0d 100755 --- a/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs +++ b/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs @@ -176,7 +176,7 @@ Width = Application.GetRealWidth(942), Gravity = Gravity.CenterHorizontal, BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - Radius = (uint)Application.GetRealHeight(30) + Radius = (uint)Application.GetRealHeight(17) }; midFrameLayout.AddChidren(accountCodeFL); @@ -216,7 +216,7 @@ LoginByAccountPWDBtn = new Button() { X = Application.GetRealWidth(98), - Y = Application.GetRealHeight(1446), + Y = Application.GetRealHeight(1466), Width = Application.GetRealWidth(300), Height = Application.GetRealHeight(49), TextID = R.MyInternationalizationString.LoginByAccountPWD, @@ -229,7 +229,7 @@ registerBtn = new Button() { X = Application.GetRealWidth(738), - Y = Application.GetRealHeight(1446), + Y = Application.GetRealHeight(1466), Width = Application.GetRealWidth(244), Height = Application.GetRealHeight(49), TextID = R.MyInternationalizationString.Register, @@ -298,26 +298,17 @@ { return; } - this.RemoveFromParent(); - Application.MainPage?.RemoveViewByTag("Login"); - UserPage.Instance.Fresh(); - + HomePage.Instance.ShowLoginLoadView(); new System.Threading.Thread(async () => { - //鍚姩ZigBee - ZigBee.Common.Application.Init(); var responseDataObj = Newtonsoft.Json.JsonConvert.DeserializeObject<Shared.Common.ResponseEntity.UserLoginRes>(requestRevetLoginCodeOBJ.ResponseData.ToString()); var revertData = responseDataObj; Config.ReFresh(); Config.Instance.Account = revertData.Account; - Config.Instance.MqttKey = revertData.MqttKey; Config.Instance.Guid = revertData.Guid; Config.Instance.MD5PWD = revertData.MD5PWD; Config.Instance.LoginDateTime = DateTime.Now; - Config.Instance.ConnectZigbeeMqttBrokerPwd = revertData.ConnectZigbeeMqttBrokerPwd; - Config.Instance.ConnectZigbeeMqttClientId = revertData.ConnectZigbeeMqttClientId; - Config.Instance.ZigbeeMqttBrokerLoadSubDomain = revertData.ZigbeeMqttBrokerLoadSubDomain; if (Config.Instance.AccountList.Find((obj) => obj == revertData.Account) == null) { Config.Instance.AccountList.Add(revertData.Account); @@ -326,15 +317,17 @@ Config.Instance.MD5PWD = revertData.MD5PWD; Config.Instance.Save(); var resultRegID = await CommonPage.Instance.PushRegID(); - var homes = await House.GetHomeLists(); - + var homes = await House.GetHomeLists(); + //鍚姩ZigBee + ZigBee.Common.Application.Init(); //鍒锋柊涓汉涓績鐨勫唴瀛樺強绾跨▼ await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread(); - Shared.Common.Room.CanInitAllRoom = true; Shared.Common.Room.InitAllRoom(); Application.RunOnMainThread(() => { + this.RemoveFromParent(); + CommonPage.Instance.RemoveViewByTag("Login"); UserPage.Instance.Fresh(); CommonPage.Loading.Hide(); }); @@ -477,7 +470,6 @@ IsRightAccount = false; codeRow.SendCodeBtn.Enable = codeRow.SendCodeBtn.IsSelected = false; } - account = (sender as EditText).Text.Trim(); } /// <summary> -- Gitblit v1.8.0