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 |   38 ++++++++++++++++++++++++++------------
 1 files changed, 26 insertions(+), 12 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs
index 443db44..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();
@@ -116,7 +125,7 @@
             btnType.TextID = R.MyInternationalizationString.uSuggestionType;
             framType.AddChidren(btnType);
             //Bug
-            var frameBug = new FrameLayoutControl();
+            var frameBug = new FrameLayoutStatuControl();
             frameBug.UseClickStatu = false;
             frameBug.Width = Application.GetRealWidth(200);
             frameBug.X = Application.GetRealWidth(314);
@@ -144,7 +153,7 @@
                 }
             };
             //浼樺寲
-            var frameOptimization = new FrameLayoutControl();
+            var frameOptimization = new FrameLayoutStatuControl();
             frameOptimization.UseClickStatu = false;
             frameOptimization.Width = Application.GetRealWidth(200);
             frameOptimization.X = Application.GetRealWidth(524);
@@ -172,7 +181,7 @@
                 }
             };
             //鏂伴渶姹�
-            var frameDemand = new FrameLayoutControl();
+            var frameDemand = new FrameLayoutStatuControl();
             frameDemand.UseClickStatu = false;
             frameDemand.Width = Application.GetRealWidth(200);
             frameDemand.X = Application.GetRealWidth(734);
@@ -224,6 +233,11 @@
             btnSubmit.CanClick = false;
             btnSubmit.ButtonClickEvent += (sender, e) =>
             {
+                //濡傛灉鏄櫄鎷熶綇瀹�,鍒欐鍔熻兘鏃犳晥
+                if (Common.Config.Instance.Home.IsVirtually == true)
+                {
+                    return;
+                }
                 //涓婁紶鎰忚
                 this.UploadSuggestion(txtInput.Text, txtEmail.Text);
             };

--
Gitblit v1.8.0