From 23c075a9c27946773feccf05abc90489a6bf5203 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 06 七月 2020 15:58:53 +0800 Subject: [PATCH] 20200706 --- HDL_ON/UI/UI1-Login/LoginPage.cs | 57 ++++++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 46 insertions(+), 11 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPage.cs b/HDL_ON/UI/UI1-Login/LoginPage.cs index 4b02192..880b3ec 100644 --- a/HDL_ON/UI/UI1-Login/LoginPage.cs +++ b/HDL_ON/UI/UI1-Login/LoginPage.cs @@ -36,15 +36,15 @@ /// 0:鎵嬫満 /// 1:閭 /// </summary> - int logintType = 0; + int loginType = 0; /// <summary> /// 鐧诲綍鏂瑰紡 /// 0:瀵嗙爜 /// 1:楠岃瘉鐮� /// </summary> int logintMode = 0; - string account; - string password; + string account = ""; + string password = ""; #endregion #region 鎺т欢鍒楄〃 @@ -142,6 +142,14 @@ HttpServerRequest pm; #endregion + string verAccount = ""; + + public void VerfifyLogin(string account ) + { + verAccount = account; + LoadView(account); + } + /// <summary> /// 鍔犺浇瑙嗗浘 /// </summary> @@ -221,8 +229,9 @@ TextColor = CSS_Color.FirstLevelTitleColor, Text = "+86", TextSize = CSS_FontSize.TextFontSize, + BackgroundColor = 0xffff0000 }; - if (logintType == 0) + if (loginType == 0) accountView.AddChidren(btnGlobalRoaming); btnDividingLineVertical_AccountView = new Button() @@ -239,11 +248,11 @@ { X = Application.GetRealWidth(78), Width = Application.GetRealWidth(319 - 78), - TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.TextFontSize, PlaceholderTextColor = CSS_Color.PromptingColor1, - PlaceholderText = Language.StringByID(StringId.PlsEntryAccount), + PlaceholderText = Language.StringByID(StringId.PlsEntryPhoneNumber), + TextAlignment = TextAlignment.CenterLeft, }; accountView.AddChidren(etAccount); @@ -269,7 +278,7 @@ Height = Application.GetMinRealAverage(20), UnSelectedImagePath = "LoginIcon/AccountIcon.png", }; - if (logintType == 1) + if (loginType == 1) { accountView.AddChidren(btnAccountIcon); } @@ -311,12 +320,12 @@ { X = Application.GetRealWidth(78), Width = Application.GetRealWidth(61 + 84), - TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.TextFontSize, PlaceholderTextColor = CSS_Color.PromptingColor1, PlaceholderText = Language.StringByID(StringId.PlsEntryPassword), SecureTextEntry = true, + TextAlignment = TextAlignment.CenterLeft, }; passwordView.AddChidren(etPassword); @@ -360,10 +369,14 @@ X = Application.GetRealWidth(219), Width = Application.GetRealWidth(100), TextID = StringId.GetVerificationCode, - TextColor = CSS_Color.MainColor, + SelectedTextColor = CSS_Color.MainColor, TextAlignment = TextAlignment.CenterRight, TextSize = CSS_FontSize.PromptFontSize_FirstLevel, + TextColor = CSS_Color.PromptingColor1, + Visible = false, + IsSelected = false, }; + passwordView.AddChidren(btnGetVerificationCode); #endregion btnPasswordViewBottomLine = new Button() @@ -376,7 +389,6 @@ passwordView.AddChidren(btnPasswordViewBottomLine); #endregion - #region 娉ㄥ唽涓庡揩鎹风櫥褰� btnRegister = new Button() @@ -423,8 +435,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