黄学彪
2020-06-18 2450c12c825ad4d78d1572da2fa421706db2df2f
ZigbeeApp/Shared/Phone/Login/AccountLoginForm.cs
@@ -32,9 +32,10 @@
        /// <param name="account">登陆账号</param>
        public void ShowForm(string account = "")
        {
            if (Config.Instance.IsLogin == true)
            if (account == string.Empty)
            {
                return;
                //使用上一次登陆的账号
                account = Common.Config.Instance.Account;
            }
            CommonPage.Instance.IsDrawerLockMode = true;
            this.Tag = "Login";
@@ -207,7 +208,7 @@
                    {
                        this.RemoveFromParent();
                        CommonPage.Instance.RemoveViewByTag("Login");
                        UserPage.Instance.Fresh();
                        UserPage.Instance.ReFreshControl();
                    });
                });
            };
@@ -841,7 +842,7 @@
                            HomePage.Instance.ShowLoginLoadView();
                        });
                        var resultRegID = await Shared.Common.CommonPage.Instance.PushRegID();
                        var homes = await House.GetHomeLists();
                        var homes = await HdlResidenceLogic.Current.GetHomeListsFromDb();
                        //刷新个人中心的内存及线程
                        await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread();
                        //启动ZigBee
@@ -851,7 +852,7 @@
                        {
                            this.RemoveFromParent();
                            CommonPage.Instance.RemoveViewByTag("Login");
                            UserPage.Instance.Fresh();
                            UserPage.Instance.ReFreshControl();
                        });
                    }
                    else
@@ -907,7 +908,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.MD5PWD = revertData.MD5PWD;
                Config.Instance.Guid = revertData.Guid;
@@ -1094,7 +1095,7 @@
                var revertData = responseDataObj;
                Config.ReFresh();
                //标记上一次是不是同一个账号登陆
                UserCenterResourse.ResidenceOption.TheSameLoginAccount = Config.Instance.Guid == revertData.Guid;
                Config.Instance.TheSameLoginAccount = Config.Instance.Guid == revertData.Guid;
                Config.Instance.Account = revertData.Account;
                Config.Instance.Password = i_psw;
                Config.Instance.MD5PWD = revertData.MD5PWD;
@@ -1104,7 +1105,7 @@
                Config.Instance.Save();
                var resultRegID = await CommonPage.Instance.PushRegID();
                var homes = await House.GetHomeLists();
                var homes = await HdlResidenceLogic.Current.GetHomeListsFromDb();
                //刷新个人中心的内存及线程
                await UserCenterLogic.InitUserCenterMenmoryAndThread();
                //启动ZigBee
@@ -1115,7 +1116,7 @@
                    CommonPage.Loading.Hide();
                    this.RemoveFromParent();
                    CommonPage.Instance.RemoveViewByTag("Login");
                    UserPage.Instance.Fresh();
                    UserPage.Instance.ReFreshControl();
                });
                return;
            }