HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-05-15 3f87bf0ae7394cdd7d52428f1f6b4361434c7cc4
ZigbeeApp/Shared/Phone/Login/AccountLoginForm.cs
@@ -32,6 +32,11 @@
        /// <param name="account">登陆账号</param>
        public void ShowForm(string account = "")
        {
            if (account == string.Empty)
            {
                //使用上一次登陆的账号
                account = Common.Config.Instance.Account;
            }
            if (Config.Instance.IsLogin == true)
            {
                return;
@@ -207,7 +212,7 @@
                    {
                        this.RemoveFromParent();
                        CommonPage.Instance.RemoveViewByTag("Login");
                        UserPage.Instance.Fresh();
                        UserPage.Instance.ReFreshControl();
                    });
                });
            };
@@ -851,7 +856,7 @@
                        {
                            this.RemoveFromParent();
                            CommonPage.Instance.RemoveViewByTag("Login");
                            UserPage.Instance.Fresh();
                            UserPage.Instance.ReFreshControl();
                        });
                    }
                    else
@@ -907,7 +912,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 +1099,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;
@@ -1115,7 +1120,7 @@
                    CommonPage.Loading.Hide();
                    this.RemoveFromParent();
                    CommonPage.Instance.RemoveViewByTag("Login");
                    UserPage.Instance.Fresh();
                    UserPage.Instance.ReFreshControl();
                });
                return;
            }