From 90d4fdb42a7f4818897ff76def0a151a99d2d9e1 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 23 十一月 2023 13:56:14 +0800 Subject: [PATCH] 2.4.2Google --- HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorHistoryPage.cs | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorHistoryPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorHistoryPage.cs index bd756c5..d81d4e2 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorHistoryPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorHistoryPage.cs @@ -11,34 +11,33 @@ private VerticalScrolViewLayout bodyScrolView; private List<VisitorTempPassword> pwdList; - Action action1; + Action backAction;// 鍚庨��鎸夐敭锛屽埛鏂癠I + Action action; public override void RemoveFromParent() { - action1?.Invoke(); + backAction?.Invoke(); base.RemoveFromParent(); } public VisitorHistoryPage(Action action) { - action1 = action; + backAction = action; bodyView = this; } public void LoadPage() { + action = () => + { + LoadPage(); + }; + pwdList = getVisitorPasswordData(); #region 璁垮璁板綍鎸夐挳 - Action click = () => - { - VisitorHistoryPage page = new VisitorHistoryPage(); - MainPage.BasePageView.AddChidren(page); - page.LoadPage(); - MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; - }; bodyView.BackgroundColor = CSS_Color.BackgroundColor; - new TopViewDiv(bodyView, Language.StringByID(StringId.VisitorInvitation)).LoadTopView_SettingText(click, ""); + new TopViewDiv(bodyView, Language.StringByID(StringId.VisitorRecord)).LoadTopView(); #endregion bodyScrolView = new VerticalScrolViewLayout() @@ -63,7 +62,7 @@ { Height = Application.GetRealWidth(20), Y = Application.GetRealWidth(6), - Text = Language.StringByID(StringId.VisitorQRCode), + Text = Language.StringByID(StringId.VisitorInvitationRecord), TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.text1Color, TextSize = CSS_FontSize.TextFontSize, @@ -102,10 +101,13 @@ itemLayout.AddChidren(btn);//+= (sender, e) btn.MouseUpEventHandler += (sender, e) => { - VisitorQRCodePage page = new VisitorQRCodePage(temPwd); - MainPage.BasePageView.AddChidren(page); - page.LoadPage(); - MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; +#if __IOS__ +#else + //VisitorQRCodePage page = new VisitorQRCodePage(action, temPwd); + //MainPage.BasePageView.AddChidren(page); + //page.LoadPage(); + //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; +#endif }; bodyScrolView.AddChidren(itemLayout); } @@ -137,7 +139,5 @@ } return dataList; } - - private List<TempPasswordInfo> infoList; } } \ No newline at end of file -- Gitblit v1.8.0