From 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期二, 21 七月 2020 09:46:53 +0800
Subject: [PATCH] 请合并最新多功能面板代码

---
 ZigbeeApp/Shared/Phone/Login/AccountRegisterSuccess.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Login/AccountRegisterSuccess.cs b/ZigbeeApp/Shared/Phone/Login/AccountRegisterSuccess.cs
index 20faead..38323c9 100755
--- a/ZigbeeApp/Shared/Phone/Login/AccountRegisterSuccess.cs
+++ b/ZigbeeApp/Shared/Phone/Login/AccountRegisterSuccess.cs
@@ -101,21 +101,21 @@
                 HomePage.Instance.ShowLoginLoadView();
                 CommonPage.Loading.Start(Language.StringByID(R.MyInternationalizationString.Logining));
                 
-                HdlThreadLogic.Current.RunThread(async () =>
+                HdlThreadLogic.Current.RunThread(() =>
                 {
                     //璐﹀彿瀵嗙爜鐧婚檰
-                    var loginSuccess = await HomePage.Instance.LoginByPWDAsync(account, password);
+                    var loginSuccess = HomePage.Instance.LoginByPWDAsync(account, password);
                     if (loginSuccess == 1)
                     {
                         if (string.IsNullOrEmpty(OpenID) == false)
                         {
                             //缁戝畾绗笁鏂�
-                            await BindAuthUser(Config.Instance.Guid, OpenID);
+                            BindAuthUser(Config.Instance.Guid, OpenID);
                         }
-                        var homes = await House.GetHomeLists();
+                        var homes = HdlResidenceLogic.Current.GetHomeListsFromDb();
 
                         //鍒锋柊涓汉涓績鐨勫唴瀛樺強绾跨▼
-                        await UserCenterLogic.InitUserCenterMenmoryAndThread();
+                        UserCenterLogic.InitUserCenterMenmoryAndThread();
                         //鍚姩ZigBee
                         ZigBee.Common.Application.Init();
 
@@ -125,7 +125,7 @@
                             this.RemoveFromParent();
                             CommonPage.Instance.RemoveViewByTag("Register");
                             CommonPage.Instance.RemoveViewByTag("Login");
-                            UserPage.Instance.Fresh();
+                            UserPage.Instance.ReFreshControl();
                         });
                     }
                     else
@@ -135,7 +135,7 @@
                             //鏈櫥褰曟垚鍔熷脊鍑虹櫥褰曠晫闈� 鍚屾椂闇�瑕佹爣璁颁负鏈櫥褰曠姸鎬�
                             Config.Instance.LoginDateTime = new DateTime(1970, 1, 1);
                             Config.Instance.Save();
-                            var login = new AccountLogin();
+                            var login = new AccountLoginForm();
                             CommonPage.Instance.AddChidren(login);
                             login.ShowForm(account);
                         });
@@ -153,14 +153,14 @@
         /// </summary>
         /// <param name="guid"></param>
         /// <param name="openId"></param>
-        private async System.Threading.Tasks.Task BindAuthUser(string guid, string openId)
+        private void BindAuthUser(string guid, string openId)
         {
             var auth = new SendDataToServer.BindAuthUser();
             auth.AccountGuid = guid;
             auth.OpenID = openId;
 
             var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject(auth);
-            await CommonPage.Instance.RequestHttpsZigbeeAsync("ZigbeeUsers/BindAuthUserToAccount", Encoding.UTF8.GetBytes(requestJson));
+            CommonPage.Instance.RequestHttpsZigbeeAsync("ZigbeeUsers/BindAuthUserToAccount", Encoding.UTF8.GetBytes(requestJson));
         }
 
         #endregion

--
Gitblit v1.8.0