| | |
| | | }; |
| | | bodyView.AddChidren(btnChangeBind); |
| | | |
| | | if( (!string.IsNullOrEmpty(MainPage.LoginUser.userMobileInfo) && optionType == 1) || (!string.IsNullOrEmpty(MainPage.LoginUser.userMobileInfo) && optionType == 2)) |
| | | //同时绑定邮箱或者手机才显示"更换验证方式" |
| | | if (!string.IsNullOrEmpty(MainPage.LoginUser.userMobileInfo) && !string.IsNullOrEmpty(MainPage.LoginUser.userEmailInfo)) |
| | | { |
| | | Button btnUnbind = new Button() |
| | | { |
| | |
| | | /// </summary> |
| | | void LoadEvent_SkipChangeBandAccountInfo(Button button) |
| | | { |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | | var cbe = new ChangeBindAccountPage(); |
| | | cbe.isUnbind = false; |
| | | MainPage.BasePageView.AddChidren(cbe); |
| | | if (optionType == 1) |
| | | { |
| | | cbe.LoadPage(action, optionType, StringId.ModifyBindingEmail, StringId.CurrentEmail); |
| | | cbe.LoadPage(action, optionType, StringId.ModifyBindingEmail); |
| | | } |
| | | else if(optionType == 2) |
| | | { |
| | | cbe.LoadPage(action, optionType, StringId.ModifyBindingPhone, StringId.CurPhone); |
| | | cbe.LoadPage(action, optionType, StringId.ModifyBindingPhone); |
| | | } |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | |
| | | /// </summary> |
| | | void LoadEvent_SkipDelBandAccountInfo(Button button) |
| | | { |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | | var cbe = new ChangeBindAccountPage(); |
| | | cbe.isUnbind = true;//是否为解绑标记 |
| | | MainPage.BasePageView.AddChidren(cbe); |
| | | if (optionType == 1) |
| | | { |
| | | cbe.LoadPage(action, optionType, StringId.UnbindEmail, StringId.CurrentEmail); |
| | | cbe.LoadPage(action, optionType, StringId.UnbindEmail); |
| | | } |
| | | else if(optionType == 2) |
| | | { |
| | | cbe.LoadPage(action, optionType, StringId.UnbindPhone, StringId.CurPhone); |
| | | cbe.LoadPage(action, optionType, StringId.UnbindPhone); |
| | | } |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |