| | |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | //如果用户配置了需要解锁的界面但是没有设置密码,则在返回时清空需要解锁的界面 |
| | | Action action = () => { |
| | | if(MainPage.LoginUser.appUnlockPage.Count > 0&& MainPage.LoginUser.appUnlockPasswrod == "") |
| | | if(OnAppConfig.Instance.appUnlockPage.Count > 0&& OnAppConfig.Instance.appUnlockPasswrod == "") |
| | | { |
| | | MainPage.LoginUser.appUnlockPage = new System.Collections.Generic.List<string>(); |
| | | MainPage.LoginUser.SaveUserInfo(); |
| | | OnAppConfig.Instance.appUnlockPage = new System.Collections.Generic.List<string>(); |
| | | OnAppConfig.Instance.SaveUserConfig(); |
| | | } |
| | | }; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.InterpretationSettings)).LoadTopView(action); |
| | |
| | | Height = Application.GetRealHeight(260), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | ScrollEnabled = false, |
| | | Visible = MainPage.LoginUser.appUnlockPage.Count > 0 |
| | | Visible = OnAppConfig.Instance.appUnlockPage.Count > 0 |
| | | }; |
| | | bodyView.AddChidren(unlockOptionView); |
| | | |
| | |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | if ( !MainPage.LoginUser.appUnlockType.Contains("2")) |
| | | if ( !OnAppConfig.Instance.appUnlockType.Contains("2")) |
| | | { |
| | | unlockOptionView.AddChidren(passwordUnlockDiv); |
| | | } |
| | |
| | | Height = Application.GetMinRealAverage(38), |
| | | UnSelectedImagePath = "Public/Switch_2.png", |
| | | SelectedImagePath = "Public/SwitchOn_2.png", |
| | | IsSelected = MainPage.LoginUser.appUnlockType.Contains("1") |
| | | IsSelected = OnAppConfig.Instance.appUnlockType.Contains("1") |
| | | }; |
| | | passwordUnlockDiv.AddChidren(btnPasswordUnlockkSwtichIcon); |
| | | |
| | |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | if (MainPage.LoginUser.appUnlockPasswrod != "" && MainPage.LoginUser.appUnlockType.Contains("1")) |
| | | if (OnAppConfig.Instance.appUnlockPasswrod != "" && OnAppConfig.Instance.appUnlockType.Contains("1")) |
| | | { |
| | | unlockOptionView.AddChidren(resetPasswordDiv); |
| | | } |
| | |
| | | }; |
| | | resetPasswordDiv.AddChidren(btnResetPasswordTitle); |
| | | |
| | | if (MainPage.LoginUser.appUnlockPasswrod != "" && MainPage.LoginUser.appUnlockType.Contains("1")) |
| | | if (OnAppConfig.Instance.appUnlockPasswrod != "" && OnAppConfig.Instance.appUnlockType.Contains("1")) |
| | | { |
| | | unlockOptionView.AddChidren(new Button() |
| | | { |
| | |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | if (!MainPage.LoginUser.appUnlockType.Contains("1")) |
| | | if (!OnAppConfig.Instance.appUnlockType.Contains("1")) |
| | | { |
| | | unlockOptionView.AddChidren(gestureUnlockDiv); |
| | | } |
| | |
| | | Height = Application.GetMinRealAverage(38), |
| | | UnSelectedImagePath = "Public/Switch_2.png", |
| | | SelectedImagePath = "Public/SwitchOn_2.png", |
| | | IsSelected = MainPage.LoginUser.appUnlockType.Contains("2") |
| | | IsSelected = OnAppConfig.Instance.appUnlockType.Contains("2") |
| | | }; |
| | | gestureUnlockDiv.AddChidren(btnGestureUnlockkSwtichIcon); |
| | | |
| | |
| | | }; |
| | | gestureUnlockDiv.AddChidren(btnGestureUnlockTitle); |
| | | |
| | | if (!MainPage.LoginUser.appUnlockType.Contains("1")) |
| | | if (!OnAppConfig.Instance.appUnlockType.Contains("1")) |
| | | { |
| | | unlockOptionView.AddChidren(new Button() |
| | | { |
| | |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | if (MainPage.LoginUser.appUnlockPasswrod != "" && MainPage.LoginUser.appUnlockType.Contains("2")) |
| | | if (OnAppConfig.Instance.appUnlockPasswrod != "" && OnAppConfig.Instance.appUnlockType.Contains("2")) |
| | | { |
| | | unlockOptionView.AddChidren(resetGestureDiv); |
| | | } |
| | |
| | | }; |
| | | resetGestureDiv.AddChidren(btnResetGestureTitle); |
| | | |
| | | if (MainPage.LoginUser.appUnlockPasswrod != "" && MainPage.LoginUser.appUnlockType.Contains("2")) |
| | | if (OnAppConfig.Instance.appUnlockPasswrod != "" && OnAppConfig.Instance.appUnlockType.Contains("2")) |
| | | { |
| | | unlockOptionView.AddChidren(new Button() |
| | | { |
| | |
| | | { |
| | | Height = Application.GetRealHeight(51), |
| | | }; |
| | | if (sTouchID && MainPage.LoginUser.appUnlockPasswrod != ""&&!MainPage.LoginUser.appUnlockType.Contains("4")) |
| | | if (sTouchID && OnAppConfig.Instance.appUnlockPasswrod != ""&&!OnAppConfig.Instance.appUnlockType.Contains("4")) |
| | | { |
| | | unlockOptionView.AddChidren(fingerprintUnlockDiv); |
| | | } |
| | |
| | | Height = Application.GetMinRealAverage(38), |
| | | UnSelectedImagePath = "Public/Switch_2.png", |
| | | SelectedImagePath = "Public/SwitchOn_2.png", |
| | | IsSelected = MainPage.LoginUser.appUnlockType.Contains("3") |
| | | IsSelected = OnAppConfig.Instance.appUnlockType.Contains("3") |
| | | }; |
| | | fingerprintUnlockDiv.AddChidren(btnFingerprintUnlockSwtichIcon); |
| | | |
| | |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | if (sFaceID && MainPage.LoginUser.appUnlockPasswrod != "" && !MainPage.LoginUser.appUnlockType.Contains("4")) |
| | | if (sFaceID && OnAppConfig.Instance.appUnlockPasswrod != "" && !OnAppConfig.Instance.appUnlockType.Contains("4")) |
| | | { |
| | | unlockOptionView.AddChidren(faceIdUnlockDiv); |
| | | } |
| | |
| | | Height = Application.GetMinRealAverage(38), |
| | | UnSelectedImagePath = "Public/Switch_2.png", |
| | | SelectedImagePath = "Public/SwitchOn_2.png", |
| | | IsSelected = MainPage.LoginUser.appUnlockType.Contains("4") |
| | | IsSelected = OnAppConfig.Instance.appUnlockType.Contains("4") |
| | | }; |
| | | faceIdUnlockDiv.AddChidren(btnFaceIdUnlockSwtichIcon); |
| | | |