From f71e74b5f0d2716fbf05da016cdaa18d64e09f80 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期四, 31 十二月 2020 17:01:18 +0800
Subject: [PATCH] 又换完成最新门锁。空气质量传感器完成数据和基本配置功能。开发图表和自动化的同事可下载此代码

---
 ZigbeeApp/Shared/Phone/MainPage/ControlForm/Base/DeviceDetailCardCommonForm.cs |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/MainPage/ControlForm/Base/DeviceDetailCardCommonForm.cs b/ZigbeeApp/Shared/Phone/MainPage/ControlForm/Base/DeviceDetailCardCommonForm.cs
index 35d0cbd..dd15980 100644
--- a/ZigbeeApp/Shared/Phone/MainPage/ControlForm/Base/DeviceDetailCardCommonForm.cs
+++ b/ZigbeeApp/Shared/Phone/MainPage/ControlForm/Base/DeviceDetailCardCommonForm.cs
@@ -124,13 +124,24 @@
 
       //鐧借壊鑳屾櫙鎺т欢
       var frameWhiteBack = new FrameLayout();
-      frameWhiteBack.Y = Application.GetRealHeight(115);
+
       frameWhiteBack.Width = Application.GetRealWidth(this.backFrameWidth);
       frameWhiteBack.Height = Application.GetRealHeight(this.backFrameHeight);
       frameWhiteBack.BackgroundColor = UserCenterColor.Current.White;
       frameWhiteBack.Radius = (uint)Application.GetRealHeight(17);
       frameWhiteBack.Gravity = Gravity.CenterHorizontal;
-      bodyFrameLayout.AddChidren(frameWhiteBack);
+      bodyFrameLayout.AddChidren(frameWhiteBack);
+
+      if (this.device.Type == DeviceType.TemperatureSensor)
+      {
+        //鑾峰彇璁惧绫诲瀷
+        var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device });
+        //绌烘皵璐ㄩ噺浼犳劅鍣� ,鍗$墖姣旇緝澶�
+        if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.AirQualitySensor)
+        {
+          frameWhiteBack.Y = Application.GetRealHeight(98);
+        }
+      }
 
       //璁惧鍚嶇О
       this.btnDeviceName = new NormalViewControl(100, 60, true);

--
Gitblit v1.8.0