| | |
| | | using System; |
| | | using System.Text.RegularExpressions; |
| | | using System.Threading; |
| | | using HDL_ON.DAL.Server; |
| | | using HDL_ON.UI.CSS; |
| | |
| | | |
| | | string verAccount = ""; |
| | | |
| | | public void VerfifyLogin(string account ) |
| | | { |
| | | verAccount = account; |
| | | LoadView(account); |
| | | } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | string registerPhone; |
| | | string registerEmail; |
| | | |
| | | /// <summary> |
| | | /// 加载视图 |
| | | /// </summary> |
| | | public void LoadView(string account = "") |
| | | public void LoadView(UserInfo userInfo = null) |
| | | { |
| | | Language.CurrentLanguage = "Chinese"; |
| | | |
| | | var btnIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(28), |
| | |
| | | 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 |
| | |
| | | |
| | | btnEmailLogin = new Button() |
| | | { |
| | | X = btnPhoneLogin.Right, |
| | | X = btnPhoneLogin.Right + Application.GetRealWidth(20), |
| | | Y = Application.GetRealHeight(177), |
| | | Width = Application.GetRealWidth(100), |
| | | Height = Application.GetRealHeight(40), |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | Text = "+86", |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | BackgroundColor = 0xffff0000 |
| | | Enable = false, |
| | | }; |
| | | if (loginType == 0) |
| | | accountView.AddChidren(btnGlobalRoaming); |
| | |
| | | }; |
| | | accountView.AddChidren(etAccount); |
| | | |
| | | if (account != "") |
| | | if (userInfo != null) |
| | | { |
| | | etAccount.Text = account; |
| | | registerEmail = userInfo.userEmailInfo; |
| | | etAccount.Text = registerPhone = userInfo.userMobileInfo; |
| | | } |
| | | |
| | | btnAccountViewBottomLine = new Button() |
| | |
| | | Height = Application.GetRealHeight(1), |
| | | }; |
| | | accountView.AddChidren(btnAccountViewBottomLine); |
| | | |
| | | |
| | | btnAccountIcon = new Button() |
| | | { |
| | |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | Visible = false, |
| | | IsSelected = false, |
| | | }; |
| | | passwordView.AddChidren(btnGetVerificationCode); |
| | | #endregion |
| | | |
| | | btnPasswordViewBottomLine = new Button() |
| | |
| | | LoadEventList(); |
| | | account = etAccount.Text.Trim(); |
| | | |
| | | #if DEBUG |
| | | #if DEBUG1211 |
| | | //本地模式 |
| | | Button btnLocalMode = new Button() |
| | | { |
| | |
| | | MainPage.GoUserPage(); |
| | | }; |
| | | |
| | | MainPage.Log("etAccount.TextAlignment : " + etAccount.TextAlignment.ToString()); |
| | | |
| | | #endif |
| | | |
| | | } |