From 0e0584b87851c56745bf73b1a961b80613dd0721 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 19 五月 2020 16:35:16 +0800
Subject: [PATCH] 2020-05-19-4

---
 ZigbeeApp/Shared/Phone/UserView/HomePage.cs |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserView/HomePage.cs b/ZigbeeApp/Shared/Phone/UserView/HomePage.cs
index cfe69a0..4b02bba 100755
--- a/ZigbeeApp/Shared/Phone/UserView/HomePage.cs
+++ b/ZigbeeApp/Shared/Phone/UserView/HomePage.cs
@@ -72,8 +72,24 @@
                         UserCenter.HdlThreadLogic.Current.RunMain(() =>
                         {
                             CommonPage.Instance.RemoveViewByTag("Login");
-                            UserPage.Instance.Fresh();
+                            UserPage.Instance.ReFreshControl();
                             CommonPage.Loading.Hide();
+                        });
+                    }
+                    else
+                    {
+                        //璁惧畾涓�涓椂闂�
+                        Config.Instance.LoginDateTime = new DateTime(1970, 1, 1);
+                        Config.Instance.Save();
+
+                        UserCenter.HdlThreadLogic.Current.RunMain(() =>
+                        {
+                            CommonPage.Loading.Hide();
+                            CommonPage.Instance.RemoveViewByTag("Login");
+                            //鐧诲綍寮瑰嚭鐧诲綍鐣岄潰
+                            var accountLogin = new Login.AccountLoginForm { };
+                            Shared.Common.CommonPage.Instance.AddChidren(accountLogin);
+                            accountLogin.ShowForm();
                         });
                     }
                 });
@@ -128,7 +144,7 @@
                 var responseDataObj = Newtonsoft.Json.JsonConvert.DeserializeObject<Shared.Common.ResponseEntity.UserLoginRes>(revertObj.ResponseData.ToString());
                 var revertData = responseDataObj;
                 //鏍囪涓婁竴娆℃槸涓嶆槸鍚屼竴涓处鍙风櫥闄�
-                UserCenter.UserCenterResourse.ResidenceOption.TheSameLoginAccount = Config.Instance.Guid == revertData.Guid;
+                Config.Instance.TheSameLoginAccount = Config.Instance.Guid == revertData.Guid;
                 Config.Instance.Account = revertData.Account;
                 Config.Instance.Password = password;
                 Config.Instance.MD5PWD = revertData.MD5PWD;

--
Gitblit v1.8.0