From 3a26f6025130dcaae4aa82ea19b16ad902450eb8 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 28 十一月 2019 11:43:47 +0800 Subject: [PATCH] 合并全部代码完成 --- ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs b/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs index 59a8102..78a13f4 100755 --- a/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs +++ b/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs @@ -298,15 +298,10 @@ { 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(); @@ -326,15 +321,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(); }); -- Gitblit v1.8.0