xm
2021-12-01 6d73bf6e816570291865674bef8bce8972e4de3f
HDL_ON/UI/UI1-Login/RegisterPage.cs
@@ -166,12 +166,12 @@
        #endregion
        #region  局部变量列表
        /// <summary>
        /// 账号类型
        /// 0:手机
        /// 1:邮箱
        /// </summary>
        int accountType = 0;
        ///// <summary>
        ///// 账号类型
        ///// 0:手机
        ///// 1:邮箱
        ///// </summary>
        //int accountType = 0;
        /// <summary>
        /// 手机号码是否有效
        /// </summary>
@@ -193,7 +193,7 @@
        /// 0:手机
        /// 1:邮箱
        /// </summary>
        int registerType;
        int registerType = 0;
        /// <summary>
        /// 手机区号
        /// </summary>
@@ -205,6 +205,10 @@
        string registerPhone;
        string registerEmail;
        /// <summary>
        /// 是否点击了返回,用于屏蔽EditText失去焦点检测事件
        /// </summary>
        bool isHitBack;
        #endregion
        /// <summary>
@@ -228,6 +232,11 @@
            };
            AddChidren(bodyView);
            //2020-12-22 增加点击隐藏键盘事件
            bodyView.MouseDownEventHandler += (sender, e) => {
                Application.HideSoftInput();
            };
            pm = new HttpServerRequest();
        }
@@ -244,7 +253,14 @@
        public void ShowDialog()
        {
            new TopViewDiv(this, bodyView, Language.StringByID(StringId.Register)).LoadTopView();
            Action backAction = () =>
            {
                isHitBack = true;
                //2020-12-22 增加点击隐藏键盘事件
                Application.HideSoftInput();
            };
            new TopViewDiv(this, bodyView, Language.StringByID(StringId.Register)).LoadTopView(backAction);
            //new PublicAssmebly().LoadTopView(this, bodyView, Language.StringByID(StringId.Register));
            #region 注册方式选择
@@ -273,6 +289,11 @@
                TextSize = CSS_FontSize.TextFontSize,
            };
            bodyView.AddChidren(btnEmailLogin);
            if(Language.CurrentLanguage!= "Chinese")
            {
                btnPhoneLogin.Width = Application.GetRealWidth(180);
                btnEmailLogin.Width = Application.GetRealWidth(180);
            }
            #endregion
            #region 服务器选择
@@ -362,7 +383,7 @@
            };
            btnGlobalRoaming.MouseUpEventHandler += eHandler;
            if (accountType == 0)
            if (registerType == 0)
            {
                accountView.AddChidren(btnGlobalRoaming);
            }
@@ -406,7 +427,7 @@
                Height = Application.GetMinRealAverage(20),
                UnSelectedImagePath = "LoginIcon/AccountIcon.png",
            };
            if (accountType == 1)
            if (registerType == 1)
            {
                accountView.AddChidren(btnAccountIcon);
            }
@@ -586,6 +607,7 @@
                TextSize = CSS_FontSize.TextFontSize,
                PlaceholderTextColor = CSS_Color.PromptingColor1,
                PlaceholderText = Language.StringByID(StringId.PlsEntryVerificationCode),
                IsNumberKeyboardType = true
            };
            verificationCodeView.AddChidren(etVerificationCode);