From 3dcbd186c42c598c0c08d1cd37034cf2baa09e54 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 30 十二月 2019 15:47:51 +0800
Subject: [PATCH] 合并了代码

---
 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/TemporaryPassword.cs |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/TemporaryPassword.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/TemporaryPassword.cs
index 22e94a7..81aaa5f 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/TemporaryPassword.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/TemporaryPassword.cs
@@ -107,7 +107,8 @@
                     TextAlignment = TextAlignment.CenterLeft,
                     Text = Language.StringByID(R.MyInternationalizationString.ClearTempPassword),
                     TextColor = Shared.Common.ZigbeeColor.Current.XMTopTitleText,
-                    TextSize = 12,
+                    TextSize = 14,
+                    IsBold =true,
                 };
                 delBackgroundFrameLayout.AddChidren(btnDelText);
 
@@ -181,7 +182,7 @@
                 Y = Application.GetRealHeight(48),
                 TextAlignment = TextAlignment.Center,
                 Text = Language.StringByID(R.MyInternationalizationString.ClickGenerate),
-                TextColor = Shared.Common.ZigbeeColor.Current.XMTopTitleText,
+                TextColor = Shared.Common.ZigbeeColor.Current.XMBlack,
                 TextSize = 12,
                 Visible = true,
                 Enable = true,
@@ -226,7 +227,7 @@
                 Height = Application.GetRealHeight(49),
                 Width = Application.GetRealWidth(84 + 135),
                 Y = Application.GetRealHeight(441),
-                TextColor = Shared.Common.ZigbeeColor.Current.XMGray2,
+                TextColor = Shared.Common.ZigbeeColor.Current.XMGray3,
                 TextSize = 12,
                 TextAlignment = TextAlignment.CenterRight,
             };
@@ -250,7 +251,7 @@
                 Width = Application.GetRealWidth(717 - 508),
                 X = Application.GetRealWidth(508),
                 Y = Application.GetRealHeight(444),
-                TextColor = Shared.Common.ZigbeeColor.Current.XMGray2,
+                TextColor = Shared.Common.ZigbeeColor.Current.XMGray3,
                 TextAlignment = TextAlignment.CenterLeft,
                 TextSize = 12,
             };
@@ -341,7 +342,8 @@
                 BackgroundColor = ZigbeeColor.Current.XMWhite,
             };
             this.midFrameLayout.AddChidren(bottomFrameLayout);
-
+            bottomFrameLayout.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
+             
             var informationEdit = new Button()
             {
                 Height = Application.GetRealHeight(60),
@@ -393,7 +395,7 @@
                 {
                     Width = Application.GetRealWidth(58),
                     Height = Application.GetRealHeight(58),
-                    UnSelectedImagePath = "Item/Next.png",
+                    UnSelectedImagePath = "Item/RightNext.png",
                     SelectedImagePath = "Item/Down.png",
                 };
                 btnNextFrameLayout.AddChidren(btnNext);
@@ -428,6 +430,15 @@
                     {
                         if (curIndex == 0)
                         {
+                            if (string.IsNullOrEmpty(doorLock.LocalTempPassword))
+                            {
+                                //璇�"鐐瑰嚮鐢熸垚"涓存椂瀵嗙爜锛�
+                                Application.RunOnMainThread(() =>
+                                {
+                                    new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.SetTempPasswordTip1), Direction = AMPopTipDirection.Up, CloseTime = 1 }.Show(btnFinifh);
+                                });
+                                return;
+                            }
                             var tempPage = new Shared.Phone.UserCenter.DoorLock.TimeSettignPage(doorLock, "ValidTime");
                             Shared.Phone.UserView.HomePage.Instance.AddChidren(tempPage);
                             Shared.Phone.UserView.HomePage.Instance.PageIndex += 1;
@@ -439,6 +450,15 @@
                         }
                         if (curIndex == 1)
                         {
+                            if (string.IsNullOrEmpty(doorLock.LocalTempPassword))
+                            {
+                                //璇�"鐐瑰嚮鐢熸垚"涓存椂瀵嗙爜锛�
+                                Application.RunOnMainThread(() =>
+                                {
+                                    new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.SetTempPasswordTip1), Direction = AMPopTipDirection.Up, CloseTime = 1 }.Show(btnFinifh);
+                                });
+                                return;
+                            }
                             var tempPage = new Shared.Phone.UserCenter.DoorLock.TimeSettignPage(doorLock, "InValidTime");
                             Shared.Phone.UserView.HomePage.Instance.AddChidren(tempPage);
                             Shared.Phone.UserView.HomePage.Instance.PageIndex += 1;
@@ -490,6 +510,7 @@
                 BackgroundColor = Shared.Common.ZigbeeColor.Current.XMUnSelect,
                 TextColor = Shared.Common.ZigbeeColor.Current.XMWhite,
                 TextSize = 16,
+                IsBold =true,
                 Enable = false,
             };
             bottomFrameLayout.AddChidren(btnFinifh);

--
Gitblit v1.8.0