From cafb1acbfc48f9a4b9e6feaeed5641c7da2f255b Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期二, 28 三月 2023 16:53:01 +0800
Subject: [PATCH] 2023年03月28日16:52:45

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs |   94 ++++++++++++++++++++++++++++------------------
 1 files changed, 57 insertions(+), 37 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
index ce10df7..840f117 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -4,6 +4,11 @@
 using HDL_ON.Entity;
 using Shared;
 
+#if __IOS__
+using UIKit;
+using Foundation;
+#endif
+
 namespace HDL_ON.UI
 {
     public partial class PersonalDataPage
@@ -434,12 +439,15 @@
         {
             EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
             {
-                //鎴戠殑浜岀淮鐮�
-                var aep = new MyQRCodePage();
-                MainPage.BasePageView.AddChidren(aep);
-                aep.LoadPage();
-                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-
+                ////鎴戠殑浜岀淮鐮�
+                //var aep = new MyQRCodePage();
+                //MainPage.BasePageView.AddChidren(aep);
+                //aep.LoadPage();
+                //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+#if __IOS__
+                //钀ょ煶璺宠浆瑙嗛椤�
+                EZSDK.IOS.EZSDK.SharedInstance().PlayWithDeviceSerial("J92513662", "1638782606240137218", "security.door.ezviz");
+#endif
             };
             _QRcodeView.MouseUpEventHandler = eventHandler;
             btnQRcode.MouseUpEventHandler = eventHandler;
@@ -447,7 +455,7 @@
             btnQRcodeRight.MouseUpEventHandler = eventHandler;
         }
 
-        #region 淇敼缁戝畾閭
+#region 淇敼缁戝畾閭
         /// <summary>
         /// 淇敼缁戝畾閭
         /// </summary>
@@ -459,6 +467,7 @@
                 {
 
                     btnUserEmailInfo.Text = GetBindAccountText(email);
+
                 };
 
                 if (CheckIfUnbound(btnUserEmailInfo.Text))
@@ -490,26 +499,33 @@
         {
             EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
             {
-                Action<string> action = (phone) =>
-                {
-                    btnUserPhoneInfo.Text = GetBindAccountText(phone);
-                };
+                //Action<string> action = (phone) =>
+                //{
+                //    btnUserPhoneInfo.Text = GetBindAccountText(phone);
 
-                if (CheckIfUnbound(btnUserPhoneInfo.Text))
-                {
-                    //鏈粦瀹�,璺宠浆鏂扮粦瀹氶〉闈�
-                    var aep = new NewBindAccountPage();
-                    MainPage.BasePageView.AddChidren(aep);
-                    aep.LoadPage(action, true);
-                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-                }
-                else
-                {
-                    var aep = new AccountBindInfoPage();
-                    MainPage.BasePageView.AddChidren(aep);
-                    aep.LoadPage(action, 2, StringId.PhoneInfo);
-                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-                }
+//};
+
+//if (CheckIfUnbound(btnUserPhoneInfo.Text))
+//{
+//    //鏈粦瀹�,璺宠浆鏂扮粦瀹氶〉闈�
+//    var aep = new NewBindAccountPage();
+//    MainPage.BasePageView.AddChidren(aep);
+//    aep.LoadPage(action, true);
+//    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+//}
+//else
+//{
+//    var aep = new AccountBindInfoPage();
+//    MainPage.BasePageView.AddChidren(aep);
+//    aep.LoadPage(action, 2, StringId.PhoneInfo);
+//    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+//}
+#if __IOS__
+                //钀ょ煶璺宠浆璁惧鍒楄〃
+                NSObject[] types = new NSObject[1];
+                types[0] = new NSString("DL30V");
+                EZSDK.IOS.EZSDK.SharedInstance().ToEZDeviceListViewWithFilterTypes(types);
+#endif
 
 
             };
@@ -517,9 +533,9 @@
             btnUserPhoneRight.MouseUpEventHandler = eventHandler;
             userPhoneInfoView.MouseUpEventHandler = eventHandler;
         }
-        #endregion
+#endregion
 
-        #region 瑙i攣璁剧疆鍖哄煙
+#region 瑙i攣璁剧疆鍖哄煙
         //void LoadEvent_SkipInterpretationSettings()
         //{
         //    EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
@@ -535,7 +551,7 @@
         //    btnInterpretationSettingsTip.MouseUpEventHandler = eventHandler;
         //}
 
-        #endregion
+#endregion
 
         /// <summary>
         /// 璺宠浆淇敼瀵嗙爜鐣岄潰
@@ -544,15 +560,19 @@
         {
             EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
             {
-                //var page = new ResetPasswordOptionPage();
-                //MainPage.BasePageView.AddChidren(page);
-                //page.LoadPage();
-                //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                ////var page = new ResetPasswordOptionPage();
+                ////MainPage.BasePageView.AddChidren(page);
+                ////page.LoadPage();
+                ////MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
 
-                var vcp = new ResetPasswordPage();
-                MainPage.BasePageView.AddChidren(vcp);
-                vcp.LoadPage();
-                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+//var vcp = new ResetPasswordPage();
+//MainPage.BasePageView.AddChidren(vcp);
+//vcp.LoadPage();
+//MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+#if __IOS__
+                //钀ょ煶娣诲姞璁惧
+                EZSDK.IOS.EZSDK.SharedInstance().AddEzvizMonitorWithDeviceType("security.door.ezviz");
+#endif
 
             };
             btnResetPasswordRight.MouseUpEventHandler = eventHandler;

--
Gitblit v1.8.0