From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期二, 30 八月 2022 09:37:38 +0800 Subject: [PATCH] 合并了IOS的代码 --- ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs | 32 +++++++------------------------- 1 files changed, 7 insertions(+), 25 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs index 8853572..6801dc8 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs @@ -21,31 +21,13 @@ /// </summary> private void InitMiddleFrame() { - //鎵撳紑杩涘害鏉� - 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; - }); - }); + var btnControl = new WebView(); + btnControl.Width = bodyFrameLayout.Width; + btnControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(btnControl); + + //鍔犺浇缃戝潃 + btnControl.LoadRequest("https://developer.hdlcontrol.com/HDLEvoyoPrivacyPolicy.html"); } } } -- Gitblit v1.8.0