From 387383a243879bf8c63a4611e2ed2c5a519e218d Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 20 十一月 2020 18:14:29 +0800 Subject: [PATCH] Merge branch 'CJL' --- HDL_ON/UI/UI1-Login/LoginPage.cs | 45 ++++++++++++++++++++++++++++++++++----------- 1 files changed, 34 insertions(+), 11 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPage.cs b/HDL_ON/UI/UI1-Login/LoginPage.cs index 4d112ea..b8f1b69 100644 --- a/HDL_ON/UI/UI1-Login/LoginPage.cs +++ b/HDL_ON/UI/UI1-Login/LoginPage.cs @@ -1,4 +1,5 @@ 锘縰sing System; +using System.Text.RegularExpressions; using System.Threading; using HDL_ON.DAL.Server; using HDL_ON.UI.CSS; @@ -144,18 +145,23 @@ string verAccount = ""; - public void VerfifyLogin(string account ) - { - verAccount = account; - LoadView(account); - } + /// <summary> + /// + /// </summary> + string registerPhone; + string registerEmail; + /// <summary> + /// 鎵嬫満鍖哄彿 + /// </summary> + string phoneZoneCode = "86"; /// <summary> /// 鍔犺浇瑙嗗浘 /// </summary> - public void LoadView(string account = "") + public void LoadView(UserInfo userInfo = null) { Language.CurrentLanguage = "Chinese"; + var btnIcon = new Button() { X = Application.GetRealWidth(28), @@ -179,7 +185,7 @@ btnIcon.MouseUpEventHandler += (sender, e) => { #if DEBUG - etAccount.Text = "464027401@qq.com"; + etAccount.Text = "464027401@qq.com"; //"2791308028@qq.com";// etPassword.Text = "qqqqqq"; btnLogin.IsSelected = true; #endif @@ -228,11 +234,27 @@ Width = Application.GetRealWidth(65), TextAlignment = TextAlignment.Center, TextColor = CSS_Color.FirstLevelTitleColor, - Text = "+86", + Text = "+" + phoneZoneCode, TextSize = CSS_FontSize.TextFontSize, + Enable = true, }; + + //璺宠浆鍥藉鍖哄彿閫夋嫨鐣岄潰 + EventHandler<MouseEventArgs> eHandler = (sender, e) => { + JLCountrycode.CountryCodeView.Current.Show((countryName, code) => { + if (!string.IsNullOrEmpty(code)) + { + phoneZoneCode = code; + btnGlobalRoaming.Text = "+" + phoneZoneCode; + } + }); + }; + btnGlobalRoaming.MouseUpEventHandler += eHandler; + if (loginType == 0) + { accountView.AddChidren(btnGlobalRoaming); + } btnDividingLineVertical_AccountView = new Button() { @@ -256,9 +278,10 @@ }; accountView.AddChidren(etAccount); - if (account != "") + if (userInfo != null) { - etAccount.Text = account; + registerEmail = userInfo.userEmailInfo; + etAccount.Text = registerPhone = userInfo.userMobileInfo; } btnAccountViewBottomLine = new Button() @@ -437,7 +460,7 @@ LoadEventList(); account = etAccount.Text.Trim(); - #if DEBUG + #if DEBUG1211 //鏈湴妯″紡 Button btnLocalMode = new Button() { -- Gitblit v1.8.0