From 691b0f2434acc1685b43f873657c9230726ffe6f Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期二, 19 四月 2022 13:38:20 +0800 Subject: [PATCH] 1.增加人脸、可视对讲入口 2.增加清除推送角标数值接口 3.修改初始化全视通、登出全视通 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs index f335816..2eee023 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs @@ -237,11 +237,17 @@ strType = Language.StringByID(R.MyInternationalizationString.AirerFun); nowSelectNo = -1; } - else if (this.device.Type == DeviceType.PMSensor) + else if (device.Type == DeviceType.TemperatureSensor) { - //绌烘皵璐ㄩ噺浼犳劅鍣� 鐜 - strType = Language.StringByID(R.MyInternationalizationString.Envoronment); - nowSelectNo = -1; + //鑾峰彇璁惧绫诲瀷 + var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device }); + //绌烘皵璐ㄩ噺浼犳劅鍣� + if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.AirQualitySensor) + { + //绌烘皵璐ㄩ噺浼犳劅鍣� 鐜 + strType = Language.StringByID(R.MyInternationalizationString.Envoronment); + nowSelectNo = -1; + } } //鏄剧ず鏂囨湰 @@ -274,6 +280,18 @@ { return true; } + //绌烘皵璐ㄩ噺浼犳劅鍣� + if (this.device.Type == DeviceType.TemperatureSensor) + { + //鑾峰彇璁惧绫诲瀷 + var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device }); + //绌烘皵璐ㄩ噺浼犳劅鍣� + if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.AirQualitySensor) + { + return true; + } + } + return false; } -- Gitblit v1.8.0