From 3f87bf0ae7394cdd7d52428f1f6b4361434c7cc4 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 15 五月 2020 13:28:33 +0800
Subject: [PATCH] hhhhhhhhh

---
 ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs |   27 ++++++++++++++++++---------
 1 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs
index 0087924..1f4abf5 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs
+++ b/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();

--
Gitblit v1.8.0