From e96e11d6f8b965ea522c983e040d41e3b9ef105a Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期一, 18 五月 2020 21:33:19 +0800 Subject: [PATCH] 2020-05-18-4 --- ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs | 65 ++++++++++++++++++++++++++++---- 1 files changed, 57 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs index a1337aa..0087924 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs @@ -54,7 +54,7 @@ //瀛楁暟 var btnFild = new NormalViewControl(120, 60, true); - btnFild.X = frameInput.Width - ControlCommonResourse.XXLeft - Application.GetRealWidth(80); + btnFild.X = frameInput.Width - ControlCommonResourse.XXLeft - Application.GetRealWidth(120); btnFild.Y = Application.GetRealHeight(503); btnFild.TextColor = UserCenterColor.Current.TextGrayColor1; btnFild.TextSize = 12; @@ -63,7 +63,6 @@ frameInput.AddChidren(btnFild); //鎮ㄧ殑鍙嶉鍜屾剰瑙佷細璁╂垜浠彉寰楁洿濂� - //var txtInput = new TextInputControl(bodyFrameLayout.Width - ControlCommonResourse.XXLeft * 2, Application.GetRealHeight(470), false); var txtInput = new EditTextView(); txtInput.Width = bodyFrameLayout.Width - ControlCommonResourse.XXLeft * 2; txtInput.Height = Application.GetRealHeight(470); @@ -74,6 +73,7 @@ txtInput.PlaceholderTextColor = UserCenterColor.Current.TextGrayColor1; txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uYouSuggestionMsg); frameInput.AddChidren(txtInput); + txtInput.InitIosPlaceholderUILabelWithHeight(Application.GetRealHeight(60)); txtInput.TextChangeEventHandler += (sender, txtvalue) => { if (this.suggestionCount <= 0) @@ -116,7 +116,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 +144,7 @@ } }; //浼樺寲 - var frameOptimization = new FrameLayoutControl(); + var frameOptimization = new FrameLayoutStatuControl(); frameOptimization.UseClickStatu = false; frameOptimization.Width = Application.GetRealWidth(200); frameOptimization.X = Application.GetRealWidth(524); @@ -172,7 +172,7 @@ } }; //鏂伴渶姹� - var frameDemand = new FrameLayoutControl(); + var frameDemand = new FrameLayoutStatuControl(); frameDemand.UseClickStatu = false; frameDemand.Width = Application.GetRealWidth(200); frameDemand.X = Application.GetRealWidth(734); @@ -224,6 +224,11 @@ btnSubmit.CanClick = false; btnSubmit.ButtonClickEvent += (sender, e) => { + //濡傛灉鏄櫄鎷熶綇瀹�,鍒欐鍔熻兘鏃犳晥 + if (Common.Config.Instance.Home.IsVirtually == true) + { + return; + } //涓婁紶鎰忚 this.UploadSuggestion(txtInput.Text, txtEmail.Text); }; @@ -285,14 +290,58 @@ HdlThreadLogic.Current.RunMain(() => { - this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uSubmitSuccessMsg)); - //鍏抽棴鐣岄潰 - this.CloseForm(); + //鏄剧ず鎴愬姛鐨勭晫闈� + this.ShowSuccessMsg(); }); } }); } + /// <summary> + /// 鏄剧ず鎴愬姛鐨勭晫闈� + /// </summary> + private void ShowSuccessMsg() + { + var frameBack = new FrameLayout(); + frameBack.BackgroundColor = 0x80000000; + this.AddChidren(frameBack); + + var frameMsg = new FrameLayout(); + frameMsg.BackgroundColor = UserCenterColor.Current.White; + frameMsg.Width = Application.GetRealWidth(622); + frameMsg.Height = Application.GetRealHeight(317); + frameMsg.Radius = (uint)Application.GetRealHeight(17); + frameMsg.Gravity = Gravity.CenterHorizontal; + frameMsg.Y = Application.GetRealHeight(792); + frameBack.AddChidren(frameMsg); + + //鎻愮ず + var btnTitle = new NormalViewControl(492, 65, true); + btnTitle.Y = Application.GetRealHeight(68); + btnTitle.Gravity = Gravity.CenterHorizontal; + btnTitle.TextID = R.MyInternationalizationString.NormalTip; + btnTitle.TextAlignment = TextAlignment.Center; + btnTitle.TextColor = 0xFF333443; + frameMsg.AddChidren(btnTitle); + + //鎮ㄧ殑鍙嶉宸叉垚鍔熸彁浜� + var btnSuccess = new NormalViewControl(frameMsg.Width, Application.GetRealHeight(60), false); + btnSuccess.Y = Application.GetRealHeight(166); + btnSuccess.TextAlignment = TextAlignment.Center; + btnSuccess.TextColor = UserCenterColor.Current.TextGrayColor1; + btnSuccess.TextID = R.MyInternationalizationString.uSubmitSuccessMsg; + frameMsg.AddChidren(btnSuccess); + + HdlThreadLogic.Current.RunThread(() => + { + System.Threading.Thread.Sleep(2000); + HdlThreadLogic.Current.RunMain(() => + { + this.CloseForm(); + }); + }); + } + #endregion } } -- Gitblit v1.8.0