陈嘉乐
2020-07-10 48ba446936b51fffafa7c3600c0dadc6ac0e8c20
ZigbeeApp/Shared/Phone/UserCenter/Password/CheckNewPhoneForm.cs
@@ -62,15 +62,16 @@
            btnArea.TextColor = UserCenterColor.Current.TextGrayColor3;
            btnArea.Gravity = Gravity.CenterVertical;
            frame.AddChidren(btnArea);
            btnArea.ButtonClickEvent += (sender, e) =>
            {
                var form = new AreaCodeSelectForm();
                form.AddForm();
                form.FinishSelectEvent += (code) =>
                {
                    btnArea.Text = "+" + code;
                };
            };
            //目前只针对+86
            //btnArea.ButtonClickEvent += (sender, e) =>
            //{
            //    var form = new AreaCodeSelectForm();
            //    form.AddForm();
            //    form.FinishSelectEvent += (code) =>
            //    {
            //        btnArea.Text = "+" + code;
            //    };
            //};
            //输入框
            var txtValue = new TextInputControl(Application.GetRealWidth(510), frame.Height - ControlCommonResourse.BottomLineHeight, false);
@@ -83,6 +84,8 @@
            btnLine.Y = txtValue.Bottom;
            btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
            frame.AddChidren(btnLine);
            //联动线的状态
            txtValue.btnLine = btnLine;
            if (string.IsNullOrEmpty(UserCenterResourse.UserInfo.Phone) == false)
            {
@@ -119,6 +122,7 @@
            btnErrorMsg.Y = Application.GetRealHeight(677);
            btnErrorMsg.TextAlignment = TextAlignment.Center;
            btnErrorMsg.TextColor = 0xfff75858;
            btnErrorMsg.IsBold = true;
            btnErrorMsg.TextID = R.MyInternationalizationString.uVerificationCodeErrorInputAgain;
            bodyFrameLayout.AddChidren(btnErrorMsg);
            btnErrorMsg.Visible = false;
@@ -131,6 +135,9 @@
            btnOk.CanClick = false;
            btnOk.ButtonClickEvent += (sender, e) =>
            {
                //清空输入的值
                btnCodeControl.ClearInputValue();
                this.btnErrorMsg.Visible = false;
                string areaCode = btnArea.Text.Substring(1);
                //检测手机号码