From 23532fa8ad34c89b6d24b01eaef6475fd0aad898 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 15 四月 2020 18:08:24 +0800 Subject: [PATCH] ??????? --- ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs | 55 +++++++++++++++++++++++++------------------------------ 1 files changed, 25 insertions(+), 30 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs index b8f594a..8853572 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs @@ -21,36 +21,31 @@ /// </summary> private void InitMiddleFrame() { - bodyFrameLayout.BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor; - - var title = new Button - { - X = Application.GetRealWidth(58), - Y = Application.GetRealHeight(58), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(58), - TextID = R.MyInternationalizationString.SLA_Title, - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 14 - }; - title.IsBold = true; - bodyFrameLayout.AddChidren(title); - - var detail=new Button - { - X = Application.GetRealWidth(58), - Y = Application.GetRealHeight(164), - Width = Application.GetRealWidth(942), - Height = Application.GetRealHeight(800), - Text = Language.StringByID(R.MyInternationalizationString.SLA_Detail).Replace("{\\r\\n}","\r\n\r\n"), - TextAlignment = TextAlignment.TopLeft, - TextColor = ZigbeeColor.Current.GXCTextColor, - IsMoreLines=true, - TextSize = 12, - - }; - bodyFrameLayout.AddChidren(detail); + //鎵撳紑杩涘害鏉� + this.ShowProgressBar(); + HdlThreadLogic.Current.RunThread(async () => + { + var strUrl = "https://hdlcontrol.com/%E6%B2%B3%E4%B8%9C%E9%9A%90%E7%A7%81%E6%9D%83%E6%94%BF%E7%AD%9620200331.txt"; + var byteData = await Common.CommonPage.Instance.DoRequestZigbeeHttpsInterface(strUrl, null, null, "GET"); + if (byteData == null) + { + this.CloseProgressBar(ShowReLoadMode.YES); + return; + } + this.CloseProgressBar(); + var receipData = System.Text.Encoding.UTF8.GetString(byteData); + HdlThreadLogic.Current.RunMain(() => + { + var btnText = new EditTextView(); + btnText.Height = bodyFrameLayout.Height; + btnText.TextSize = 12; + btnText.TextColor = UserCenterColor.Current.TextGrayColor3; + btnText.TextAlignment = TextAlignment.TopLeft; + btnText.Foucs = false; + bodyFrameLayout.AddChidren(btnText); + btnText.Text = receipData; + }); + }); } } } -- Gitblit v1.8.0