From b94f318b1cb5c3618dd53b5240c1d999c8427b71 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期五, 29 十一月 2019 13:09:25 +0800
Subject: [PATCH] 2019.11.29

---
 ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs b/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs
index 59a8102..6f5a457 100644
--- a/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Account/AccountLoginByCode.cs
@@ -87,6 +87,7 @@
         /// </summary>
         public AccountLoginByCode()
         {
+            CommonPage.Instance.IsDrawerLockMode = true;
             Tag = "Login";
             BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor;
             t = new Timer();
@@ -298,11 +299,8 @@
                     {
                         return;
                     }
-                    this.RemoveFromParent();
-                    Application.MainPage?.RemoveViewByTag("Login");
 
-                    UserPage.Instance.Fresh();
-
+                    HomePage.Instance.ShowLoginLoadView();
                     new System.Threading.Thread(async () =>
                     {
                         //鍚姩ZigBee
@@ -331,10 +329,11 @@
                         //鍒锋柊涓汉涓績鐨勫唴瀛樺強绾跨▼
                         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();
                         });
@@ -437,7 +436,7 @@
         private void AddPhoneOrEmailFL(FrameLayout accountCodeFrameLayout, string phoneOrEmail)
         {
             accountCodeFrameLayout.RemoveAll();
-
+            account = string.Empty;
             if (phoneOrEmail == "Phone")
             {
                 phoneRow = new PhoneRowForm();
@@ -471,6 +470,7 @@
             {
                 IsRightAccount = true;
                 codeRow.SendCodeBtn.Enable = codeRow.SendCodeBtn.IsSelected = true;
+                account= (sender as EditText).Text.Trim();
             }
             else
             {

--
Gitblit v1.8.0