黄学彪
2019-10-10 2ed75b8b337048e5d75e6d9ec8307633134f02fd
ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs
@@ -54,9 +54,7 @@
            btnEffect.TextColor = UserCenterColor.Current.TextGrayColor1;
            rowFinger.AddChidren(btnEffect, ChidrenBindMode.NotBind);
            //开关按钮
            var btnFingerSwicth = rowFinger.AddMostRightEmptyIcon(104, 63);
            btnFingerSwicth.UnSelectedImagePath = "Item/Switch.png";
            btnFingerSwicth.SelectedImagePath = "Item/SwitchSelected.png";
            var btnFingerSwicth = rowFinger.AddMostRightSwitchIcon();
            btnFingerSwicth.IsSelected = UserCenterResourse.Option.FingerprintAuthentication;
            //底线
            rowFinger.AddBottomLine();
@@ -132,9 +130,7 @@
            btnUnLockByApp.TextColor = UserCenterColor.Current.TextGrayColor1;
            rowLock.AddChidren(btnUnLockByApp, ChidrenBindMode.NotBind);
            //开关按钮
            var btnLockSwicth = rowLock.AddMostRightEmptyIcon(104, 63);
            btnLockSwicth.UnSelectedImagePath = "Item/Switch.png";
            btnLockSwicth.SelectedImagePath = "Item/SwitchSelected.png";
            var btnLockSwicth = rowLock.AddMostRightSwitchIcon();
            //底线
            rowLock.AddBottomLine();
            btnLockSwicth.IsSelected = UserCenterResourse.Option.DoorUnLockByRemote;
@@ -176,12 +172,34 @@
            //密码验证
            rowPsw.ButtonClickEvent += (sender, e) =>
            {
                var form = new Password.EditorSecondaryPasswordForm();
                form.AddForm();
                //如果没有密码验证
                if (string.IsNullOrEmpty(UserCenterResourse.Option.PswAuthentication) == true)
                {
                    //如果设置有其他验证方式,则需要验证,否则直接跳过验证
                    HdlCheckLogic.Current.CheckSecondarySecurity(
                   () => { var form = new Password.EditorSecondaryPasswordForm(); form.AddForm(); },
                   () => { var form = new Password.EditorSecondaryPasswordForm(); form.AddForm(); });
                }
                else
                {
                    var form = new Password.EditorSecondaryPasswordForm();
                    form.AddForm();
                }
            };
            //手势验证
            rowGesture.ButtonClickEvent += (sender, e) =>
            {
                //如果没有手势验证
                if (string.IsNullOrEmpty(UserCenterResourse.Option.GestureAuthentication) == true)
                {
                    //如果设置有其他验证方式,则需要验证,否则直接跳过验证
                    HdlCheckLogic.Current.CheckSecondarySecurity(
                   () => { },
                   () => { });
                }
                else
                {
                }
            };
            //远程开锁
            btnLockSwicth.ButtonClickEvent += (sender, e) =>
@@ -289,10 +307,12 @@
        /// <summary>
        /// 自身的上层界面关闭后,它自身处于最上层时,触发的事件
        /// </summary>
        public override void FormActionAgainEvent()
        public override int FormActionAgainEvent()
        {
            //重新刷新界面
            this.InitMiddleFrame();
            return 1;
        }
        #endregion