黄学彪
2020-08-21 9cc8fd11b13813adbdd3c6c31554e5c0bebf4026
ZigbeeApp/Shared/Phone/UserCenter/Abount/SLAForm.cs
@@ -21,31 +21,13 @@
        /// </summary>
        private void InitMiddleFrame()
        {
            //打开进度条
            this.ShowProgressBar();
            HdlThreadLogic.Current.RunThread(() =>
            {
                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 = 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://www.baidu.com");
        }
    }
}