From 3e4e108d0c6317edb18bbf9c41419fd6d6a0eebb Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期四, 28 十一月 2019 17:53:10 +0800
Subject: [PATCH] 2019-11-28-2

---
 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs
index 191071a..a6ff417 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs
@@ -17,14 +17,8 @@
         /// <param name="common">Common.</param>
         public void Changed(CommonDevice common)
         {
-            //if (common.Type != ZigBee.Device.DeviceType.OnOffSwitch)
-            //{
-            //    return;
-            //}
-
             Shared.Application.RunOnMainThread(() =>
             {
-                //var dev = common as Panel;
             });
         }
         /// 鏋勯�犲嚱鏁�
@@ -104,7 +98,7 @@
 
             var btnAddFrameLayout = new FrameLayout
             {
-                X = Application.GetRealWidth(829),
+                X = Application.GetRealWidth(829 - 116),
                 Height = Application.GetRealHeight(72),
                 Width = Application.GetRealWidth(190),
             };
@@ -128,7 +122,11 @@
                 TextAlignment = TextAlignment.CenterLeft,
             };
             btnAddFrameLayout.AddChidren(btnUndistributeText);
-
+            if (UserCenterResourse.UserInfo.AuthorityNo != 1)
+            {
+                btnUndistributeIcon.Width = 0;
+                btnUndistributeText.Width = 0;
+            }
             EventHandler<MouseEventArgs> eHandler = (sender, e) =>
             {
                 var undistributeDoorlockUserPage = new Shared.Phone.UserCenter.DoorLock.UndistributeDoorlockUserPage(doorLock, doorLock.localAllAccountList);
@@ -144,7 +142,6 @@
             };
             this.midFrameLayout.AddChidren(midVerticalScrolViewLayout);
             ReadAccountList();
-            // MidFrameLayoutContent();
         }
 
         async void MidFrameLayoutContent()
@@ -222,6 +219,13 @@
                         Shared.Phone.UserView.HomePage.Instance.PageIndex += 1;
                         masterManagementPage.Show();
                     }
+                    else if (currentIndex == 3)
+                    {
+                        var userDoorLockPage = new UserDoorLockPage(doorLock, currentAccount);
+                        Shared.Phone.UserView.HomePage.Instance.AddChidren(userDoorLockPage);
+                        Shared.Phone.UserView.HomePage.Instance.PageIndex += 1;
+                        userDoorLockPage.Show();
+                    }
                     else
                     {
                         var memberFrozenPage = new Shared.Phone.UserCenter.DoorLock.MemberFrozenPage(doorLock, currentAccount);

--
Gitblit v1.8.0