From 68051add9f0c92a430711acbe75b4f225a6f4d33 Mon Sep 17 00:00:00 2001
From: lss <lsc@hdlchina.com.cn>
Date: 星期一, 13 六月 2022 20:37:09 +0800
Subject: [PATCH] 1

---
 HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorHistoryPage.cs |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorHistoryPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/Visitor/VisitorHistoryPage.cs
index f8d1fdd..8fe3476 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(null);
-                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.VisitorInvitation)).LoadTopView();
             #endregion
 
             bodyScrolView = new VerticalScrolViewLayout()
@@ -102,7 +101,7 @@
                 itemLayout.AddChidren(btn);//+= (sender, e)
                 btn.MouseUpEventHandler += (sender, e) =>
                 {
-                    VisitorQRCodePage page = new VisitorQRCodePage(temPwd);
+                    VisitorQRCodePage page = new VisitorQRCodePage(action, temPwd);
                     MainPage.BasePageView.AddChidren(page);
                     page.LoadPage();
                     MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
@@ -137,7 +136,5 @@
             }
             return dataList;
         }
-
-        private List<TempPasswordInfo> infoList;
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0