| | |
| | | { |
| | | MainPage.Log("KK:TouchID验证成功"); |
| | | unlockTime = DateTime.Now; |
| | | //MainPage.BasePageView.RemoveAt(MainPage.BasePageView.ChildrenCount - 1); |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | } |
| | | else |
| | | { |
| | | ///将验证指纹的页面移除 |
| | | //MainPage.BasePageView.RemoveAt(MainPage.BasePageView.ChildrenCount - 1); |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | |
| | | if (MainPage.LoginUser.appUnlockType.Contains("1")) |
| | | { |
| | | var page = new AppUnlockPasswordPage(MainPage.LoginUser.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage("7"); |
| | | //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | else if (MainPage.LoginUser.appUnlockType.Contains("2")) |
| | | { |
| | | var page = new AppUnlockGesturePage(MainPage.LoginUser.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage("7"); |
| | | //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | |
| | | } |
| | | }; |
| | | return; |
| | | } |
| | | else if (MainPage.LoginUser.appUnlockType.Contains("4")) |
| | | { |
| | | //Face ID验证 |
| | | // |
| | | return; |
| | | } |
| | | else if (MainPage.LoginUser.appUnlockType.Contains("1")) |
| | | { |
| | | var page = new AppUnlockPasswordPage(MainPage.LoginUser.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage("7"); |
| | | //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | return; |
| | | } |
| | | else if (MainPage.LoginUser.appUnlockType.Contains("2")) |
| | | { |
| | | var page = new AppUnlockGesturePage(MainPage.LoginUser.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage("7"); |
| | | //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | return; |
| | | } |
| | | #if __ANDROID__ |
| | | new System.Threading.Thread(() => |
| | |
| | | { |
| | | MainPage.Log($"倒计时:{i} sec"); |
| | | System.Threading.Thread.Sleep(1000); |
| | | i++; |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | |
| | | BackgroundColor = CSS.CSS_Color.MainBackgroundColor |
| | | }; |
| | | MainPage.BasePageView.AddChidren(bodyView); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | bodyView.AddChidren(new Button() |
| | | { |
| | |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS.CSS_Color.MainColor, |
| | | TextSize = CSS.CSS_FontSize.TextFontSize, |
| | | TextID = MainPage.LoginUser.appUnlockType.Contains("1") ? StringId.VerifyDigitalPassword : StringId.VerifyGesturePassword |
| | | TextID = MainPage.LoginUser.appUnlockType.Contains("1") ? StringId.VerifyDigitalPassword : StringId.VerifyGesturePassword, |
| | | }; |
| | | bodyView.AddChidren(btnOtherVerify); |
| | | |
| | | btnOtherVerify.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | |
| | | ///将验证指纹的页面移除 |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | Action action = () => |
| | | { |
| | | unlockTime = DateTime.Now; |
| | |
| | | page.LoadPage(optionType); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | ///将验证指纹的页面移除 |
| | | //MainPage.BasePageView.RemoveAt(MainPage.BasePageView.ChildrenCount - 1); |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | |
| | | }; |
| | | |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | //dialog.Show(); |
| | | Console.WriteLine("-0987654321"); |
| | | } |