From efcffde735fa65ae34bae0bcc86313b74ed0e36c Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 20 五月 2024 13:47:38 +0800
Subject: [PATCH] 优化离线数据

---
 HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs
index 54d69c3..2f38f9b 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs
@@ -46,13 +46,15 @@
         /// </summary>
         public void LoadPage()
         {
-            new TopViewDiv(bodyView, Language.StringByID(StringId.About)).LoadTopView();
+            var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.About));
+            topView.maginY = 10;
+            topView.LoadTopView();
             this.BackgroundColor = CSS_Color.MainBackgroundColor;
 
             Button btnOnIcon = new Button()
             {
                 Gravity = Gravity.CenterHorizontal,
-                Y = Application.GetRealWidth(106),
+                Y = Application.GetRealWidth(106+10),
                 Width = Application.GetRealWidth(58),
                 Height = Application.GetRealWidth(58),
                 UnSelectedImagePath = "OnIcon.png",
@@ -95,6 +97,10 @@
                 Text = Language.StringByID(StringId.VersionNumber) + " " + MainPage.VersionString,
             };
             bodyView.AddChidren(btnOnVersion);
+            if(HttpUtil.GlobalRequestHttpsHost == "https://test-gz.hdlcontrol.com")
+            {
+                btnOnVersion.Text += "(Test Server)";
+            }
 
 
             var lineView = new FrameLayout()
@@ -230,14 +236,14 @@
         /// </summary>
         void OpenUrl()
         {
-            if (!string.IsNullOrEmpty(newAppVersion)&& newAppVersion.Contains("http"))
+            if (!string.IsNullOrEmpty(newAppVersion)&& newAppVersionUrl.Contains("http"))
             {
                 HDLUtils.OpenUrl(newAppVersionUrl);
             }
-            else
-            {
-                Utlis.ShowTip(Language.StringByID(StringId.IsLatestVersion));
-            }
+            //else
+            //{
+            //    Utlis.ShowTip(Language.StringByID(StringId.IsLatestVersion));
+            //}
         }
 
         /// <summary>

--
Gitblit v1.8.0