| | |
| | | } |
| | | Action action = () => |
| | | { |
| | | OnAppConfig.Instance.unlockTime = DateTime.Now; |
| | | UserInfo.Current.unlockTime = DateTime.Now; |
| | | }; |
| | | //1:验证指纹 |
| | | if (OnAppConfig.Instance.appUnlockType.Contains("3")) |
| | | if (UserInfo.Current.appUnlockType.Contains("3")) |
| | | { |
| | | Action fAction = () => |
| | | { |
| | |
| | | if (e == TouchIDUtils.TouchIDState.Success) |
| | | { |
| | | MainPage.Log("KK:TouchID验证成功"); |
| | | OnAppConfig.Instance.unlockTime = DateTime.Now; |
| | | UserInfo.Current.unlockTime = DateTime.Now; |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | } |
| | | else |
| | | { |
| | | ///将验证指纹的页面移除 |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | if (OnAppConfig.Instance.appUnlockType.Contains("1")) |
| | | if (UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | var page = new AppUnlockPasswordPage(OnAppConfig.Instance.appUnlockPasswrod, action); |
| | | var page = new AppUnlockPasswordPage(UserInfo.Current.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage("7"); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | else if (OnAppConfig.Instance.appUnlockType.Contains("2")) |
| | | else if (UserInfo.Current.appUnlockType.Contains("2")) |
| | | { |
| | | var page = new AppUnlockGesturePage(OnAppConfig.Instance.appUnlockPasswrod, action); |
| | | var page = new AppUnlockGesturePage(UserInfo.Current.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage("7"); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | |
| | | } |
| | | }; |
| | | } |
| | | else if (OnAppConfig.Instance.appUnlockType.Contains("4")) |
| | | else if (UserInfo.Current.appUnlockType.Contains("4")) |
| | | { |
| | | //Face ID验证 |
| | | // |
| | | } |
| | | else if (OnAppConfig.Instance.appUnlockType.Contains("1")) |
| | | else if (UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | var page = new AppUnlockPasswordPage(OnAppConfig.Instance.appUnlockPasswrod, action); |
| | | var page = new AppUnlockPasswordPage(UserInfo.Current.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage("7"); |
| | | } |
| | | else if (OnAppConfig.Instance.appUnlockType.Contains("2")) |
| | | else if (UserInfo.Current.appUnlockType.Contains("2")) |
| | | { |
| | | var page = new AppUnlockGesturePage(OnAppConfig.Instance.appUnlockPasswrod, action); |
| | | var page = new AppUnlockGesturePage(UserInfo.Current.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage("7"); |
| | | } |
| | |
| | | |
| | | public void LoadPage() |
| | | { |
| | | if (OnAppConfig.Instance.unlockTime.AddSeconds(60) > DateTime.Now || OnAppConfig.Instance.appUnlockPasswrod == "" || OnAppConfig.Instance.appUnlockPage.Count == 0) |
| | | if (UserInfo.Current.unlockTime.AddSeconds(60) > DateTime.Now || UserInfo.Current.appUnlockPasswrod == "" || UserInfo.Current.appUnlockPage.Count == 0) |
| | | { |
| | | return; |
| | | } |
| | |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS.CSS_Color.MainColor, |
| | | TextSize = CSS.CSS_FontSize.TextFontSize, |
| | | TextID = OnAppConfig.Instance.appUnlockType.Contains("1") ? StringId.VerifyDigitalPassword : StringId.VerifyGesturePassword, |
| | | TextID = UserInfo.Current.appUnlockType.Contains("1") ? StringId.VerifyDigitalPassword : StringId.VerifyGesturePassword, |
| | | }; |
| | | bodyView.AddChidren(btnOtherVerify); |
| | | |
| | |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | Action action = () => |
| | | { |
| | | OnAppConfig.Instance.unlockTime = DateTime.Now; |
| | | UserInfo.Current.unlockTime = DateTime.Now; |
| | | }; |
| | | if (OnAppConfig.Instance.appUnlockType.Contains("1")) |
| | | if (UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | var page = new AppUnlockPasswordPage(OnAppConfig.Instance.appUnlockPasswrod, action); |
| | | var page = new AppUnlockPasswordPage(UserInfo.Current.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(optionType); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | else if (OnAppConfig.Instance.appUnlockType.Contains("2")) |
| | | else if (UserInfo.Current.appUnlockType.Contains("2")) |
| | | { |
| | | var page = new AppUnlockGesturePage(OnAppConfig.Instance.appUnlockPasswrod, action); |
| | | var page = new AppUnlockGesturePage(UserInfo.Current.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(optionType); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |