| | |
| | | public void LoadView() |
| | | { |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.PersonalCenter)).LoadTopView(); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.PersonalCenter)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(); |
| | | |
| | | bodyScrolView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Y = Application.GetRealHeight(64+10), |
| | | VerticalScrollBarEnabled = false, |
| | | Height = Application.GetRealHeight(551), |
| | | Height = Application.GetRealHeight(551-10), |
| | | }; |
| | | bodyView.AddChidren(bodyScrolView); |
| | | |
| | | if (MainPage.Increase) |
| | | { |
| | | bodyScrolView.Height = Application.GetRealHeight(541); |
| | | bodyScrolView.Height = Application.GetRealHeight(541-10); |
| | | } |
| | | |
| | | headPortraitView = new FrameLayout() |
| | |
| | | }; |
| | | headPortraitView.AddChidren(userHeadImageView); |
| | | |
| | | #region 个人信息选项区域 |
| | | #region 个人信息选项区域 |
| | | var topPaddingView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(8) |
| | |
| | | optionListView.Height = Application.GetRealHeight(51 * (6 + addRow)); |
| | | |
| | | |
| | | #region 个人选项-名字区域 |
| | | #region 个人选项-名字区域 |
| | | /// <summary> |
| | | /// 个人选项-名字区域 |
| | | /// </summary> |
| | |
| | | }; |
| | | userNameView.AddChidren(btnEditUserNameIcon); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | #endregion |
| | | #region 个人选项-二维码区域 |
| | | #endregion |
| | | #region 个人选项-二维码区域 |
| | | /// <summary> |
| | | /// 个人选项-二维码区域 |
| | | /// </summary> |
| | |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | _QRcodeView.AddChidren(btnQRcodeRight); |
| | | #endregion |
| | | #region 个人选项-邮箱信息区域 |
| | | #endregion |
| | | #region 个人选项-邮箱信息区域 |
| | | /// <summary> |
| | | /// 个人选项-邮箱信息区域 |
| | | /// </summary> |
| | |
| | | }; |
| | | userEmailInfoView.AddChidren(btnUserEmailRight); |
| | | optionListView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | #endregion |
| | | #endregion |
| | | #region 个人选项-手机信息区域 |
| | | /// <summary> |
| | | /// 个人选项-手机信息区域 |
| | |
| | | |
| | | } |
| | | |
| | | //访客管理 |
| | | #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 }); |
| | | |
| | | 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); |
| | | |
| | | 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) => |
| | | { |
| | | |
| | | |
| | | #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 |
| | | }; |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | #endregion |
| | | var topPaddingView2 = new FrameLayout() |
| | | { |
| | |
| | | }; |
| | | bodyScrolView.AddChidren(topPaddingView2); |
| | | |
| | | #region 解锁设置区域 |
| | | #region 解锁设置区域 |
| | | ///// <summary> |
| | | ///// 解锁设置区域 |
| | | ///// </summary> |
| | |
| | | //}; |
| | | //interpretationSettingsView.AddChidren(btnInterpretationSettingsRight); |
| | | //interpretationSettingsView.AddChidren(new LineView(interpretationSettingsView.Height)); |
| | | #endregion |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region 服务器信息 |
| | | #region 服务器信息 |
| | | ListCellView myServerInfoCellView = new ListCellView() |
| | | { |
| | | }; |
| | |
| | | MainPage.BasePageView.AddChidren(myServerInfoPage); |
| | | myServerInfoPage.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | }; |
| | | myServerInfoCellView.GoAction = selectAction; |
| | | myServerInfoCellView.BtnTilte.Text = Language.StringByID(StringId.ServerInformation); |
| | | //myServerInfoCellView.LineView.RemoveFromParent(); |
| | | |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 注销账号 |
| | | |
| | | #region 注销账号 |
| | | ListCellView logOffView = new ListCellView() |
| | | { |
| | | }; |
| | |
| | | logOffView.BtnTilte.Text = Language.StringByID(StringId.CancelAccount); |
| | | logOffView.LineView.RemoveFromParent(); |
| | | |
| | | #endregion |
| | | #endregion |
| | | |
| | | btnLogout = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(623), |
| | | Y = Application.GetRealHeight(624), |
| | | Height = Application.GetRealHeight(50), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |