From a27183cc0ed72c43657c7e7c21370e6074dcc695 Mon Sep 17 00:00:00 2001
From: Davin <591807572@qq.com>
Date: 星期四, 27 七月 2023 13:50:29 +0800
Subject: [PATCH] merge to Dev-Branch
---
HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs | 50 ++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 46 insertions(+), 4 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs
index a9abca7..863d94e 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/AboutOnPage.cs
@@ -47,6 +47,7 @@
public void LoadPage()
{
new TopViewDiv(bodyView, Language.StringByID(StringId.About)).LoadTopView();
+ this.BackgroundColor = CSS_Color.MainBackgroundColor;
Button btnOnIcon = new Button()
{
@@ -94,6 +95,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()
@@ -184,6 +189,43 @@
#endregion
privacyPolicyView.GoAction = privacyPolicyAction;
CheckIfNeedUpdateAsync();
+
+#if __IOS__
+ #region 鍥轰欢鍗囩骇
+ var firUpdateView = new ListCellView()
+ {
+ Y = privacyPolicyView.Bottom,
+ };
+ firUpdateView.BtnTilte.TextID = StringId.FirmwareUpdate;
+ bodyView.AddChidren(firUpdateView);
+ Action firmwareUpdateAction = () =>
+ {
+ var mPage = new HDL_ON.UI.UI2.PersonalCenter.AboutOn.FirmwareUpdateView();
+ MainPage.BasePageView.AddChidren(mPage);
+ mPage.ShowPage();
+ MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ };
+ firUpdateView.GoAction = firmwareUpdateAction;
+ #endregion
+
+
+ #region HomeKit鏀寔璇存槑
+ var homeKitView = new ListCellView()
+ {
+ Y = firUpdateView.Bottom,
+ };
+ bodyView.AddChidren(homeKitView);
+ homeKitView.BtnTilte.TextID = StringId.SupportHomeKitNotes;
+ Action homeKitSupportViewAction = () => {
+ var mPage = new HDL_ON.UI.UI2.PersonalCenter.AboutOn.SupportHomeKitNotesPage();
+ MainPage.BasePageView.AddChidren(mPage);
+ mPage.ShowPage();
+ MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+ };
+ homeKitView.GoAction = homeKitSupportViewAction;
+ #endregion
+#endif
+
}
@@ -192,7 +234,7 @@
/// </summary>
void OpenUrl()
{
- if (!string.IsNullOrEmpty(newAppVersion))
+ if (!string.IsNullOrEmpty(newAppVersion)&& newAppVersion.Contains("http"))
{
HDLUtils.OpenUrl(newAppVersionUrl);
}
@@ -276,7 +318,7 @@
var newVersion = versionResult.version;
if (newVersion.CompareTo(MainPage.VersionString) > 0)
{
- newAppVersionUrl = versionResult.androidUrl;
+ newAppVersionUrl = versionResult.packageUrl;
return newVersion;
}
return "";
@@ -323,7 +365,7 @@
/// 妫�娴嬫柊鐗堟湰
/// </summary>
/// <returns>The https app version async.</returns>
- private AppVersionRes CheckAppVersion()
+ private AppVersionResNew CheckAppVersion()
{
try
{
@@ -335,7 +377,7 @@
return null;
}
- var responeData = Newtonsoft.Json.JsonConvert.DeserializeObject<AppVersionRes>(result.Data.ToString());
+ var responeData = Newtonsoft.Json.JsonConvert.DeserializeObject<AppVersionResNew>(result.Data.ToString());
return responeData;
}
return null;
--
Gitblit v1.8.0