From bbfd7bd230204cca3056740412e9f3562459fc17 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期五, 31 三月 2023 19:12:38 +0800 Subject: [PATCH] 2023年03月31日19:12:15 --- HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs | 8 +++++--- HDL_ON/Entity/Function/Function.cs | 5 +++++ HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs | 1 + HDL_ON/DAL/Server/HttpUtil.cs | 4 ++-- ys/Jars/hdl_ezvizsdk.aar | 0 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs | 24 ++++++++++++++++++++---- 6 files changed, 33 insertions(+), 9 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpUtil.cs b/HDL_ON/DAL/Server/HttpUtil.cs index aa884c3..14e83b1 100644 --- a/HDL_ON/DAL/Server/HttpUtil.cs +++ b/HDL_ON/DAL/Server/HttpUtil.cs @@ -18,8 +18,8 @@ /// 鍥哄畾鍩熷悕,姝e紡鐜 /// 鍏叡鍩熷悕灏辫繎瑙f瀽 /// </summary> - public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; - //public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com"; + //public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; + public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com"; const string APP_KEY = "HDL-HOME-APP-TEST"; const string SECRET_KEY = "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss"; //public const string GlobalRequestHttpsHost = "http://59.41.255.150:7777";//mmmm diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs index af35197..0f75a83 100644 --- a/HDL_ON/Entity/Function/Function.cs +++ b/HDL_ON/Entity/Function/Function.cs @@ -1393,6 +1393,11 @@ list.Add(DoorLock); return list; } + + /// <summary> + /// 鐚溂 + /// </summary> + public const string Peephole = "peephole"; /// <summary> /// 钀ょ煶瑙嗛闂ㄩ攣 /// </summary> diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs index c0a6841..9db9698 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs @@ -422,9 +422,11 @@ this.RemoveFromParent(); }; break; - case SPK.VideoDoorLock: { - //璺宠浆鍒癮ndroid閭h竟鍘� - HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.SkipAddDeviceActivity(SPK.VideoDoorLock); + case SPK.Peephole: + case SPK.VideoDoorLock: + { + //璺宠浆鍒癮ndroid,ios閭h竟鍘� + HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.SkipAddDeviceActivity(device.spk); } break; } diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs index efa787c..7bc7270 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs @@ -3,6 +3,7 @@ using HDL_ON.DAL.Server; using HDL_ON.Entity; using HDL_ON.UI.CSS; +using HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock; #if __Android__ using Java.Interop; using Android.Content; @@ -115,10 +116,10 @@ bool isFrist = true; foreach (var device in deviceList) { - if (!this.CheckSupportDevice(device)) - { - continue; - } + //if (!this.CheckSupportDevice(device)) + //{ + // continue; + //} var row = new RowLayout() { Height = Application.GetRealHeight(50), @@ -205,6 +206,21 @@ contentView.BeginHeaderRefreshing(); }; break; + case SPK.VideoDoorLock: + { + CommonMethod.Current.MainThread(() => + { + //钀ょ煶瑙嗛闂ㄩ攣 + var form = new VideoDoorLockPage(device, btnName, new Button(), CommonMethod.Comerom.sanfan, () => + { + row.RemoveFromParent(); + }); + MainPage.BasePageView.AddChidren(form); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + form.Show(); + }); + } + break; } }; diff --git a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs index 6613907..e527034 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs @@ -531,6 +531,7 @@ collect,//鏀惰棌 room,//鎴块棿 push,//鎺ㄩ�� + sanfan,//涓夋柟 } #if __IOS__ diff --git a/ys/Jars/hdl_ezvizsdk.aar b/ys/Jars/hdl_ezvizsdk.aar index e1cc8d3..cd7123d 100644 --- a/ys/Jars/hdl_ezvizsdk.aar +++ b/ys/Jars/hdl_ezvizsdk.aar Binary files differ -- Gitblit v1.8.0