wjc
2023-03-28 641277fdee9310c25c4891310d419131df7a5008
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,14 @@
        {
            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;
                //萤石跳转视频页
                EZSDK.IOS.EZSDK.SharedInstance().PlayWithDeviceSerial("J92513662", "1638782606240137218", "security.door.ezviz");
            };
            _QRcodeView.MouseUpEventHandler = eventHandler;
            btnQRcode.MouseUpEventHandler = eventHandler;
@@ -447,7 +454,7 @@
            btnQRcodeRight.MouseUpEventHandler = eventHandler;
        }
        #region 修改绑定邮箱
#region 修改绑定邮箱
        /// <summary>
        /// 修改绑定邮箱
        /// </summary>
@@ -459,6 +466,7 @@
                {
                    btnUserEmailInfo.Text = GetBindAccountText(email);
                };
                if (CheckIfUnbound(btnUserEmailInfo.Text))
@@ -490,26 +498,32 @@
        {
            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;
                //}
                //萤石跳转设备列表
                NSObject[] types = new NSObject[1];
                types[0] = new NSString("DL30V");
                EZSDK.IOS.EZSDK.SharedInstance().ToEZDeviceListViewWithFilterTypes(types);
            };
@@ -517,9 +531,9 @@
            btnUserPhoneRight.MouseUpEventHandler = eventHandler;
            userPhoneInfoView.MouseUpEventHandler = eventHandler;
        }
        #endregion
#endregion
        #region 解锁设置区域
#region 解锁设置区域
        //void LoadEvent_SkipInterpretationSettings()
        //{
        //    EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
@@ -535,7 +549,7 @@
        //    btnInterpretationSettingsTip.MouseUpEventHandler = eventHandler;
        //}
        #endregion
#endregion
        /// <summary>
        /// 跳转修改密码界面
@@ -544,15 +558,18 @@
        {
            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
            {
                //var page = new ResetPasswordOptionPage();
                //MainPage.BasePageView.AddChidren(page);
                //page.LoadPage();
                ////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;
                //萤石添加设备
                EZSDK.IOS.EZSDK.SharedInstance().AddEzvizMonitorWithDeviceType("security.door.ezviz");
            };
            btnResetPasswordRight.MouseUpEventHandler = eventHandler;