| | |
| | | { |
| | | #region 控件列表 |
| | | /// <summary> |
| | | /// 等待提示 |
| | | /// </summary> |
| | | Loading waitPage; |
| | | /// <summary> |
| | | /// 当前界面 |
| | | /// </summary> |
| | | FrameLayout bodyView; |
| | |
| | | /// 选择手机登录按钮 |
| | | /// </summary> |
| | | Button btnPhoneLogin; |
| | | /// <summary> |
| | | /// 登录类型选中提示线 |
| | | /// </summary> |
| | | Button btnChooseBottomLine; |
| | | /// <summary> |
| | | /// 选择邮箱登录按钮 |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// 修改按钮 |
| | | /// </summary> |
| | | Button btnRegister; |
| | | Button btnReset; |
| | | |
| | | #endregion |
| | | |
| | |
| | | /// 1:邮箱 |
| | | /// </summary> |
| | | int accountType = 0; |
| | | /// <summary> |
| | | /// 手机号码是否有效 |
| | | /// </summary> |
| | | bool ValidMobileNumber = false; |
| | | /// <summary> |
| | | /// 密码是否有效 |
| | | /// </summary> |
| | | bool ValidPassword = false; |
| | | /// <summary> |
| | | /// 服务器请求对象 |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | int registerType; |
| | | #endregion |
| | | public ForgetPasswordPage() |
| | | public ForgetPasswordPage(Action<string> action) |
| | | { |
| | | callbackAction = action; |
| | | bodyView = new FrameLayout() |
| | | { |
| | | BackgroundColor = CSS_Color.BackgroundColor, |
| | |
| | | |
| | | public void ShowDialog() |
| | | { |
| | | new PublicAssmebly().LoadTopView(this, bodyView, Language.StringByID(R.InternationalizationString.Register)); |
| | | new TopViewDiv(this,bodyView, Language.StringByID(StringId.ForgetPassword)).LoadTopView(); |
| | | //new PublicAssmebly().LoadTopView(this, bodyView, Language.StringByID(StringId.ForgetPassword)); |
| | | |
| | | #region 修改方式选择 |
| | | btnPhoneLogin = new Button() |
| | |
| | | Y = Application.GetRealHeight(112), |
| | | Width = Application.GetRealWidth(120), |
| | | Height = Application.GetRealHeight(40), |
| | | TextID = R.InternationalizationString.LoginByPhone, |
| | | TextID = StringId.LoginByPhone, |
| | | TextColor = CSS_Color.MainColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CSS_FontSize.EmphasisFontSize_Secondary, |
| | | }; |
| | | bodyView.AddChidren(btnPhoneLogin); |
| | | |
| | | btnChooseBottomLine = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(46), |
| | | Height = Application.GetRealHeight(4), |
| | | X = btnPhoneLogin.X + Application.GetRealWidth(27), |
| | | Y = btnPhoneLogin.Bottom, |
| | | Radius = (uint)Application.GetRealHeight(2), |
| | | BorderWidth = 0, |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | }; |
| | | bodyView.AddChidren(btnChooseBottomLine); |
| | | |
| | | btnEmailLogin = new Button() |
| | | { |
| | |
| | | Y = Application.GetRealHeight(112), |
| | | Width = Application.GetRealWidth(100), |
| | | Height = Application.GetRealHeight(40), |
| | | TextID = R.InternationalizationString.LoginByEmail, |
| | | TextID = StringId.LoginByEmail, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | |
| | | accountView.AddChidren(btnGlobalRoaming); |
| | | } |
| | | |
| | | //btnDividingLineVertical_AccountView = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(65), |
| | | // Gravity = Gravity.CenterVertical, |
| | | // Width = 1, |
| | | // Height = Application.GetRealHeight(20), |
| | | // BackgroundColor = CSS_Color.DividingLineColor, |
| | | //}; |
| | | //accountView.AddChidren(btnDividingLineVertical_AccountView); |
| | | |
| | | etAccount = new EditText() |
| | | { |
| | | X = Application.GetRealWidth(49), |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | PlaceholderTextColor = CSS_Color.PromptingColor1, |
| | | PlaceholderText = Language.StringByID(R.InternationalizationString.PlsEntryPhoneNumber), |
| | | PlaceholderText = Language.StringByID(StringId.PlsEntryPhoneNumber), |
| | | }; |
| | | accountView.AddChidren(etAccount); |
| | | |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | PlaceholderTextColor = CSS_Color.PromptingColor1, |
| | | PlaceholderText = Language.StringByID(R.InternationalizationString.PlsEntryVerificationCode), |
| | | PlaceholderText = Language.StringByID(StringId.PlsEntryVerificationCode), |
| | | }; |
| | | verificationCodeView.AddChidren(etVerificationCode); |
| | | |
| | |
| | | { |
| | | X = Application.GetRealWidth(219), |
| | | Width = Application.GetRealWidth(100), |
| | | TextID = R.InternationalizationString.GetVerificationCode, |
| | | TextID = StringId.GetVerificationCode, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | PlaceholderTextColor = CSS_Color.PromptingColor1, |
| | | PlaceholderText = Language.StringByID(R.InternationalizationString.PlsRegisterPassword), |
| | | PlaceholderText = Language.StringByID(StringId.PlsRegisterPassword), |
| | | SecureTextEntry = true, |
| | | }; |
| | | passwordView.AddChidren(etPassword); |
| | |
| | | repeatPasswordView = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(28), |
| | | Y = Application.GetRealHeight(279), |
| | | Y = Application.GetRealHeight(335), |
| | | Width = Application.GetRealWidth(335), |
| | | Height = Application.GetRealHeight(44), |
| | | }; |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | PlaceholderTextColor = CSS_Color.PromptingColor1, |
| | | PlaceholderText = Language.StringByID(R.InternationalizationString.PlsRegisterRepeatPassword), |
| | | PlaceholderText = Language.StringByID(StringId.PlsRegisterRepeatPassword), |
| | | SecureTextEntry = true, |
| | | }; |
| | | repeatPasswordView.AddChidren(etRepeatPassword); |
| | |
| | | |
| | | #endregion |
| | | |
| | | btnRegister = new Button() |
| | | btnReset = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(421), |
| | |
| | | Radius = (uint)Application.GetRealHeight(22), |
| | | SelectedBackgroundColor = CSS_Color.MainColor, |
| | | BackgroundColor = CSS_Color.PromptingColor1, |
| | | TextID = R.InternationalizationString.Register, |
| | | TextID = StringId.ConfirmReset, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | }; |
| | | bodyView.AddChidren(btnRegister); |
| | | bodyView.AddChidren(btnReset); |
| | | |
| | | //LoadEventList(); |
| | | LoadEventList(); |
| | | } |
| | | } |
| | | } |