JLChen
2020-12-23 320d7cc8feb394d0ce3db2ec1d01593b554d990f
HDL_ON/UI/UI1-Login/LoginPage.cs
@@ -14,6 +14,10 @@
            //bodyView = new FrameLayout();
            //AddChidren(bodyView);
            bodyView = this;
            //2020-12-22 增加点击隐藏键盘事件
            bodyView.MouseDownEventHandler += (sender, e) => {
                Application.HideSoftInput();
            };
            pm = new HttpServerRequest();
        }
@@ -25,10 +29,11 @@
                waitPage.RemoveFromParent();
                waitPage = null;
            }
            else
            {
                base.RemoveFromParent();
            }
            base.RemoveFromParent();
            ////2020-12-22 增加点击隐藏键盘事件
            //Application.HideSoftInput();
        }
        #region 局部变量
@@ -182,14 +187,23 @@
            };
            bodyView.AddChidren(btnIcon_bg);
#if DEBUG
            bool b = false;
            btnIcon.MouseUpEventHandler += (sender, e) =>
            {
#if DEBUG
                etAccount.Text = "464027401@qq.com"; //"2791308028@qq.com";//
                etPassword.Text = "qqqqqq";
                if (b)
                {
                    etAccount.Text = "13697499568";// "18824864143";//"464027401@qq.com"; //"2791308028@qq.com";//13697499568
                }
                else
                {
                    etAccount.Text = "13375012446";//13375012446
                }
                b = !b;
                etPassword.Text = "123456";
                btnLogin.IsSelected = true;
#endif
            };
#endif
            #region 登录方式选择
            btnPhoneLogin = new Button()
@@ -500,7 +514,7 @@
        /// <param name="frameBack"></param>
        private void AddServiceAgreementControl(FrameLayout frameLayout)
        {
            isAgreePrivacyPolicy = UserInfo.Current.isAgreePrivacyPolicy;
            isAgreePrivacyPolicy = OnAppConfig.Instance.isAgreePrivacyPolicy;
            var frameRow = new FrameLayout()
            {
                Height = Application.GetRealHeight(28),
@@ -532,8 +546,8 @@
            {
                isAgreePrivacyPolicy = !isAgreePrivacyPolicy;
                agreeBtn.IsSelected = isAgreePrivacyPolicy;
                UserInfo.Current.isAgreePrivacyPolicy = isAgreePrivacyPolicy;
                UserInfo.Current.SaveUserInfo();
                OnAppConfig.Instance.isAgreePrivacyPolicy = isAgreePrivacyPolicy;
                OnAppConfig.Instance.SaveConfig();
            };
            agreeBtn.MouseUpEventHandler = eventHandler;