wxr
2023-11-23 90d4fdb42a7f4818897ff76def0a151a99d2d9e1
HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs
@@ -709,52 +709,52 @@
#region 个人选项-访客管理
            if (Entity.DB_ResidenceData.Instance.SupportVisitorManage)//判断是否支持访客管理
            {
                optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
//                optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
                visitorManagementView = new FrameLayout()
                {
                    Height = Application.GetRealHeight(50),
                };
                optionListView.AddChidren(visitorManagementView);
//                visitorManagementView = new FrameLayout()
//                {
//                    Height = Application.GetRealHeight(50),
//                };
//                optionListView.AddChidren(visitorManagementView);
                var btnVisitorManagementRight = new Button()
                {
                    X = Application.GetRealWidth(339),
                    Gravity = Gravity.CenterVertical,
                    Width = Application.GetMinRealAverage(16),
                    Height = Application.GetMinRealAverage(16),
                    UnSelectedImagePath = "Public/Right.png",
                };
                visitorManagementView.AddChidren(btnVisitorManagementRight);
//                var btnVisitorManagementRight = new Button()
//                {
//                    X = Application.GetRealWidth(339),
//                    Gravity = Gravity.CenterVertical,
//                    Width = Application.GetMinRealAverage(16),
//                    Height = Application.GetMinRealAverage(16),
//                    UnSelectedImagePath = "Public/Right.png",
//                };
//                visitorManagementView.AddChidren(btnVisitorManagementRight);
                btnisitorVManagementText = new Button()
                {
                    X = Application.GetRealWidth(16),
                    TextAlignment = TextAlignment.CenterLeft,
                    TextColor = CSS_Color.FirstLevelTitleColor,
                    TextSize = CSS_FontSize.SubheadingFontSize,
                    TextID = StringId.VisitorManage,
                };
                visitorManagementView.AddChidren(btnisitorVManagementText);
//                btnisitorVManagementText = new Button()
//                {
//                    X = Application.GetRealWidth(16),
//                    TextAlignment = TextAlignment.CenterLeft,
//                    TextColor = CSS_Color.FirstLevelTitleColor,
//                    TextSize = CSS_FontSize.SubheadingFontSize,
//                    TextID = StringId.VisitorManage,
//                };
//                visitorManagementView.AddChidren(btnisitorVManagementText);
                btnisitorVManagementText.MouseUpEventHandler = (sender, e) =>
                {
//                btnisitorVManagementText.MouseUpEventHandler = (sender, e) =>
//                {
#if __IOS__
                    ////刷新接口请求所需要的参数
                    //Foundation.NSDictionary info = new Foundation.NSDictionary("regionUrl", HttpUtil.GlobalRequestHttpsHost, "token", UserInfo.Current.LoginTokenString, "appkey", "HDL-HOME-APP-TEST", "secret", "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss", "refreshToken", UserInfo.Current.RefreshToken);
                    //Shared.IOS.HDLFVSDK.Video.RefreshInfo(info);
                    //////跳转访客管理界面
                    //Shared.IOS.HDLFVSDK.Video.ShowVisitorManager();
#else
                    var page = new VisitorQRCodePage();
                    MainPage.BasePageView.AddChidren(page);
                    page.LoadPage();
                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
#endif
                };
//#if __IOS__
//                    ////刷新接口请求所需要的参数
//                    //Foundation.NSDictionary info = new Foundation.NSDictionary("regionUrl", HttpUtil.GlobalRequestHttpsHost, "token", UserInfo.Current.LoginTokenString, "appkey", "HDL-HOME-APP-TEST", "secret", "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss", "refreshToken", UserInfo.Current.RefreshToken);
//                    //Shared.IOS.HDLFVSDK.Video.RefreshInfo(info);
//                    //////跳转访客管理界面
//                    //Shared.IOS.HDLFVSDK.Video.ShowVisitorManager();
//#else
//                    //var page = new VisitorQRCodePage();
//                    //MainPage.BasePageView.AddChidren(page);
//                    //page.LoadPage();
//                    //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
//#endif
//                };
            }