From 9c16d3614d9b88c637f967518a329f239fcd3aaf Mon Sep 17 00:00:00 2001
From: lss <316519258@qq.com>
Date: 星期五, 12 六月 2020 09:22:04 +0800
Subject: [PATCH] 2020.06.12

---
 ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs |   54 +++++++++++++++++++++++++-----------------------------
 1 files changed, 25 insertions(+), 29 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs
index 43d8046..8853572 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs
@@ -21,35 +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.CenterLeft,
-                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