wxr
2020-09-09 c3e1b733fc45bd9f0b88bfb560cfa87a270b079b
HDL_ON/UI/UI0-Public/AppUnlockPage.cs
@@ -33,54 +33,46 @@
                    {
                        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(() =>
@@ -90,6 +82,7 @@
                {
                    MainPage.Log($"倒计时:{i} sec");
                    System.Threading.Thread.Sleep(1000);
                    i++;
                }
                Application.RunOnMainThread(() =>
                {
@@ -127,7 +120,6 @@
                BackgroundColor = CSS.CSS_Color.MainBackgroundColor
            };
            MainPage.BasePageView.AddChidren(bodyView);
            MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
            bodyView.AddChidren(new Button()
            {
@@ -167,13 +159,14 @@
                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;
@@ -192,11 +185,11 @@
                    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");
        }