xm
2020-05-19 136b9e2fc48249a5ff89874f1080ba94130e7a9e
ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs
@@ -53,8 +53,8 @@
            bodyFrameLayout.AddChidren(frameInput);
            //字数
            var btnFild = new NormalViewControl(120, 60, true);
            btnFild.X = frameInput.Width - ControlCommonResourse.XXLeft - Application.GetRealWidth(120);
            var btnFild = new NormalViewControl(150, 60, true);
            btnFild.X = frameInput.Width - ControlCommonResourse.XXLeft - Application.GetRealWidth(150);
            btnFild.Y = Application.GetRealHeight(503);
            btnFild.TextColor = UserCenterColor.Current.TextGrayColor1;
            btnFild.TextSize = 12;
@@ -82,21 +82,30 @@
                }
                int length = txtvalue.Length;
                if (length > 500)
                {
                    if (btnSubmit.CanClick == true) { btnSubmit.CanClick = false; }
                    btnFild.Text = "0";
                    return;
                }
                if (length == 0)
                {
                    if (btnSubmit.CanClick == true) { btnSubmit.CanClick = false; }
                }
                else
                {
                    if (btnSubmit.CanClick == false) { btnSubmit.CanClick = true; }
                    if (btnSubmit.CanClick == false)
                    {
                        //变灰色字体
                        btnFild.TextColor = UserCenterColor.Current.TextGrayColor1;
                        btnSubmit.CanClick = true;
                    }
                }
                btnFild.Text = (500 - length).ToString();
                if (length > 500)
                {
                    if (btnSubmit.CanClick == true)
                    {
                        btnSubmit.CanClick = false;
                        //变红色字体
                        btnFild.TextColor = Common.ZigbeeColor.Current.GXCTextRed;
                    }
                }
            };
            var framType = new FrameLayout();