| | |
| | | { |
| | | if (verificationOption == 0) |
| | | { |
| | | if (string.IsNullOrEmpty(MainPage.LoginUser.userMobileInfo)) |
| | | if (string.IsNullOrEmpty( UserInfo.Current.userMobileInfo)) |
| | | { |
| | | LoadDialog_UnbindTipInfo(verificationOption); |
| | | } |
| | |
| | | this.RemoveFromParent(); |
| | | var vcp = new ResetPasswordVerificationCodePage(); |
| | | MainPage.BasePageView.AddChidren(vcp); |
| | | vcp.LoadPage(StringId.PhoneNumberVerification,2); |
| | | vcp.LoadPage(StringId.PhoneNumberVerification, true, UserInfo.Current.userMobileInfo); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (string.IsNullOrEmpty(MainPage.LoginUser.userEmailInfo)) |
| | | if (string.IsNullOrEmpty( UserInfo.Current.userEmailInfo)) |
| | | { |
| | | LoadDialog_UnbindTipInfo(verificationOption); |
| | | } |
| | |
| | | this.RemoveFromParent(); |
| | | var vcp = new ResetPasswordVerificationCodePage(); |
| | | MainPage.BasePageView.AddChidren(vcp); |
| | | vcp.LoadPage(StringId.EmailVerification,1); |
| | | vcp.LoadPage(StringId.EmailVerification, false, UserInfo.Current.userEmailInfo); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | } |
| | |
| | | dialogView.MouseUpEventHandler = (sender, e) => { |
| | | dialog.Close(); |
| | | }; |
| | | |
| | | Button btnTitleIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(108), |
| | | Y = Application.GetRealWidth(152), |
| | | Width = Application.GetRealWidth(160), |
| | | Height = Application.GetRealWidth(160), |
| | | UnSelectedImagePath = "PersonalCenter/ResetPassword/DialogTipTitleIcon.png" |
| | | }; |
| | | dialogView.AddChidren(btnTitleIcon); |
| | | |
| | | dialog.AddChidren(dialogView); |
| | | |
| | | FrameLayout contentView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | |
| | | }; |
| | | dialogView.AddChidren(contentView); |
| | | |
| | | Button btnTitleIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(108), |
| | | Y = Application.GetRealWidth(152), |
| | | Width = Application.GetRealWidth(160), |
| | | Height = Application.GetRealWidth(160), |
| | | UnSelectedImagePath = "PersonalCenter/ResetPassword/DialogTipTitleIcon.png" |
| | | }; |
| | | dialogView.AddChidren(btnTitleIcon); |
| | | btnTitleIcon.MouseUpEventHandler = (sender, e) => { |
| | | dialog.Close(); |
| | | }; |
| | | |
| | | Button btnMsg = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | |
| | | Height = Application.GetRealWidth(62), |
| | | TextColor = CSS_Color.MainColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = verificationOption == 0?StringId.UnBindPhoneNumberCannotVerification: StringId.UnBindEmailCannotVerification, |
| | | TextID = verificationOption == 0 ? StringId.UnBindPhoneNumberCannotVerification: StringId.UnBindEmailCannotVerification, |
| | | }; |
| | | contentView.AddChidren(btnMsg); |
| | | |
| | |
| | | TextAlignment = TextAlignment.Center, |
| | | Radius = (uint)Application.GetRealWidth(22), |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | TextID = StringId.PhoneNumberVerification, |
| | | TextID = StringId.GoBind, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | |
| | | { |
| | | dialog.Close(); |
| | | Action<string> action = (obj) => { }; |
| | | var vcp = new BindAccountPage(); |
| | | MainPage.BasePageView.AddChidren(vcp); |
| | | vcp.LoadPage(action, verificationOption == 0 ? StringId.BindPhone : StringId.BindEmail); |
| | | //var vcp = new BindAccountPage(); |
| | | //MainPage.BasePageView.AddChidren(vcp); |
| | | //vcp.LoadPage(action, verificationOption == 0 ? StringId.BindPhone : StringId.BindEmail); |
| | | //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | //是否为换绑手机 |
| | | var isPhone = verificationOption == 0; |
| | | //跳转新绑定页面 |
| | | var aep = new NewBindAccountPage(); |
| | | MainPage.BasePageView.AddChidren(aep); |
| | | aep.LoadPage(action, isPhone); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | |
| | | }; |
| | | |
| | | dialog.Show(); |