| | |
| | | /// 选择邮箱登录按钮 |
| | | /// </summary> |
| | | Button btnEmailLogin; |
| | | #region 服务器选择 |
| | | /// <summary> |
| | | /// 服务器区域 |
| | | /// </summary> |
| | | FrameLayout serverView; |
| | | /// <summary> |
| | | /// 服务器Icon按钮 |
| | | /// </summary> |
| | | Button btnServerIcon; |
| | | /// <summary> |
| | | /// 服务器文本框 |
| | | /// </summary> |
| | | Button btnServerText; |
| | | ///// <summary> |
| | | ///// 服务器文本框 |
| | | ///// </summary> |
| | | //EditText etServer; |
| | | ///// <summary> |
| | | ///// 服务器子区域里面的分割线1 |
| | | ///// </summary> |
| | | //Button btnLineVertical_server; |
| | | /// <summary> |
| | | ///服务器go按钮 |
| | | /// </summary> |
| | | Button btnServerGo; |
| | | /// <summary> |
| | | /// 服务器子区域底部横线 |
| | | /// </summary> |
| | | Button btnServerBottomLine; |
| | | #endregion |
| | | /// <summary> |
| | | /// 账号子区域 |
| | | /// </summary> |
| | |
| | | /// 手机区号 |
| | | /// </summary> |
| | | string phoneZoneCode = "86"; |
| | | /// <summary> |
| | | /// 是否选择过服务器 |
| | | /// </summary> |
| | | bool isSelectServer; |
| | | |
| | | string registerPhone; |
| | | string registerEmail; |
| | |
| | | { |
| | | bodyView = new FrameLayout() |
| | | { |
| | | BackgroundColor = CSS_Color.BackgroundColor, |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | AddChidren(bodyView); |
| | | |
| | |
| | | bodyView.AddChidren(btnEmailLogin); |
| | | #endregion |
| | | |
| | | #region 服务器选择 |
| | | serverView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(28), |
| | | Y = Application.GetRealHeight(167), |
| | | Width = Application.GetRealWidth(319), |
| | | Height = Application.GetRealHeight(44), |
| | | }; |
| | | bodyView.AddChidren(serverView); |
| | | |
| | | btnServerIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(9), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(20), |
| | | Height = Application.GetMinRealAverage(20), |
| | | UnSelectedImagePath = "LoginIcon/Server.png", |
| | | |
| | | }; |
| | | serverView.AddChidren(btnServerIcon); |
| | | |
| | | btnServerText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(49), |
| | | Width = Application.GetRealWidth(319 - 78), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextID = StringId.PleaseSelectCountryOrRegion, |
| | | }; |
| | | serverView.AddChidren(btnServerText); |
| | | |
| | | #region 密码登录-控件加载 |
| | | btnServerGo = new Button() |
| | | { |
| | | X = Application.GetRealWidth(303), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | serverView.AddChidren(btnServerGo); |
| | | |
| | | #endregion |
| | | btnServerBottomLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(42), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | SelectedBackgroundColor = CSS_Color.MainColor, |
| | | Height = Application.GetRealHeight(1), |
| | | }; |
| | | serverView.AddChidren(btnServerBottomLine); |
| | | #endregion |
| | | |
| | | int topPadding = Application.GetRealHeight(12); |
| | | #region 账号填写 |
| | | accountView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(28), |
| | | Y = Application.GetRealHeight(167), |
| | | Y = serverView.Bottom + topPadding, |
| | | Width = Application.GetRealWidth(319), |
| | | Height = Application.GetRealHeight(44), |
| | | }; |
| | |
| | | passwordView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(28), |
| | | Y = Application.GetRealHeight(223), |
| | | Y = accountView.Bottom + topPadding, |
| | | Width = Application.GetRealWidth(319), |
| | | Height = Application.GetRealHeight(44), |
| | | }; |
| | |
| | | repeatPasswordView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(28), |
| | | Y = Application.GetRealHeight(279), |
| | | Y = passwordView.Bottom + topPadding, |
| | | Width = Application.GetRealWidth(319), |
| | | Height = Application.GetRealHeight(44), |
| | | }; |
| | |
| | | verificationCodeView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(28), |
| | | Y = Application.GetRealHeight(335), |
| | | Y = repeatPasswordView.Bottom + topPadding, |
| | | //Y = Application.GetRealHeight(335), |
| | | Width = Application.GetRealWidth(319), |
| | | Height = Application.GetRealHeight(44), |
| | | }; |
| | |
| | | btnRegister = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(421), |
| | | Y = verificationCodeView.Bottom + Application.GetRealHeight(42), |
| | | //Y = Application.GetRealHeight(421), |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealHeight(44), |
| | | Radius = (uint)Application.GetRealHeight(22), |
| | | Height = Application.GetRealWidth(44), |
| | | Radius = (uint)Application.GetRealWidth(22), |
| | | SelectedBackgroundColor = CSS_Color.MainColor, |
| | | BackgroundColor = CSS_Color.PromptingColor1, |
| | | TextID = StringId.Register, |
| | |
| | | // userName = revertData.name |
| | | //}; |
| | | UserInfo.Current.userType = revertData.userType; |
| | | UserInfo.Current.accountString = account; |
| | | UserInfo.Current.AccountString = account; |
| | | //UserInfo.Current.password = password; |
| | | UserInfo.Current.lastTime = DateTime.Now; |
| | | UserInfo.Current.LastTime = DateTime.Now; |
| | | UserInfo.Current.ID = revertData.userId; |
| | | UserInfo.Current.loginTokenString = revertData.headerPrefix + revertData.accessToken; |
| | | UserInfo.Current.refreshToken = revertData.refreshToken; |
| | | UserInfo.Current.LoginTokenString = revertData.headerPrefix + revertData.accessToken; |
| | | UserInfo.Current.RefreshToken = revertData.refreshToken; |
| | | UserInfo.Current.userName = revertData.name; |
| | | |
| | | UserInfo.Current.SaveUserInfo(); |