From 53189866ba4012fec0b40990fd2281b836fa2668 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 01 七月 2020 16:29:16 +0800 Subject: [PATCH] 20200701 --- HDL_ON/UI/UI1-Login/LoginPage.cs | 33 +++++++++++++++++++++++++++++++-- 1 files changed, 31 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPage.cs b/HDL_ON/UI/UI1-Login/LoginPage.cs index 67f4f25..c65572c 100644 --- a/HDL_ON/UI/UI1-Login/LoginPage.cs +++ b/HDL_ON/UI/UI1-Login/LoginPage.cs @@ -142,6 +142,14 @@ HttpServerRequest pm; #endregion + string verAccount = ""; + + public void VerfifyLogin(string account ) + { + verAccount = account; + LoadView(account); + } + /// <summary> /// 鍔犺浇瑙嗗浘 /// </summary> @@ -379,7 +387,6 @@ #endregion - #region 娉ㄥ唽涓庡揩鎹风櫥褰� btnRegister = new Button() { @@ -425,9 +432,31 @@ }; bodyView.AddChidren(btnLogin); - LoadEventList(); account = etAccount.Text.Trim(); + + #if DEBUG + //鏈湴妯″紡 + Button btnLocalMode = new Button() + { + Y = Application.GetRealHeight(600), + Height = Application.GetRealHeight(67), + Text = "Local Mode", + TextAlignment = TextAlignment.Center, + BackgroundColor = CSS_Color.MainColor, + TextColor = CSS_Color.TextualColor, + }; + bodyView.AddChidren(btnLocalMode); + + btnLocalMode.MouseUpEventHandler = (sender, e) => + { + MainPage.LocalMode = true; + MainPage.LoginUser = new UserInfo(); + MainPage.GoUserPage(); + }; + + #endif + } } } \ No newline at end of file -- Gitblit v1.8.0