| | |
| | | /// </summary> |
| | | public AccountLoginByCode() |
| | | { |
| | | CommonPage.Instance.IsDrawerLockMode = true; |
| | | Tag = "Login"; |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; |
| | | t = new Timer(); |
| | |
| | | { |
| | | return; |
| | | } |
| | | this.RemoveFromParent(); |
| | | Application.MainPage?.RemoveViewByTag("Login"); |
| | | |
| | | UserPage.Instance.Fresh(); |
| | | |
| | | HomePage.Instance.ShowLoginLoadView(); |
| | | new System.Threading.Thread(async () => |
| | | { |
| | | //启动ZigBee |
| | |
| | | //刷新个人中心的内存及线程 |
| | | 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(); |
| | | }); |
| | |
| | | private void AddPhoneOrEmailFL(FrameLayout accountCodeFrameLayout, string phoneOrEmail) |
| | | { |
| | | accountCodeFrameLayout.RemoveAll(); |
| | | |
| | | account = string.Empty; |
| | | if (phoneOrEmail == "Phone") |
| | | { |
| | | phoneRow = new PhoneRowForm(); |
| | |
| | | { |
| | | IsRightAccount = true; |
| | | codeRow.SendCodeBtn.Enable = codeRow.SendCodeBtn.IsSelected = true; |
| | | account= (sender as EditText).Text.Trim(); |
| | | } |
| | | else |
| | | { |