| | |
| | | string account; |
| | | if (optionType == 0) |
| | | { |
| | | account = MainPage.LoginUser.userEmailInfo; |
| | | account = UserInfo.Current.userEmailInfo; |
| | | } |
| | | else |
| | | { |
| | | account = MainPage.LoginUser.userMobileInfo; |
| | | account = UserInfo.Current.userMobileInfo; |
| | | } |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView(); |
| | |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | //Text = optionType == 1 ? MainPage.LoginUser.userEmailInfo : MainPage.LoginUser.userMobileInfo, |
| | | //Text = optionType == 1 ? UserInfo.Current.userEmailInfo : UserInfo.Current.userMobileInfo, |
| | | }; |
| | | rowView.AddChidren(btnContent); |
| | | |
| | |
| | | |
| | | |
| | | //同时绑定邮箱或者手机才显示"更换验证方式" |
| | | if (!string.IsNullOrEmpty(MainPage.LoginUser.userMobileInfo) && !string.IsNullOrEmpty(MainPage.LoginUser.userEmailInfo)) |
| | | if (!string.IsNullOrEmpty( UserInfo.Current.userMobileInfo) && !string.IsNullOrEmpty( UserInfo.Current.userEmailInfo)) |
| | | { |
| | | Button btnChangeGetVer = new Button() |
| | | { |
| | |
| | | if (optionType == 2) |
| | | { |
| | | btnTitle.TextID = isUnbind ? StringId.CurPhone : StringId.PhoneNumberVerification; |
| | | btnContent.Text = MainPage.LoginUser.userMobileInfo; |
| | | btnContent.Text = UserInfo.Current.userMobileInfo; |
| | | } |
| | | else |
| | | { |
| | | btnTitle.TextID = isUnbind ? StringId.CurrentEmail : StringId.EmailVerification; |
| | | btnContent.Text = MainPage.LoginUser.userEmailInfo; |
| | | btnContent.Text = UserInfo.Current.userEmailInfo; |
| | | } |
| | | } |
| | | } |
| | |
| | | ResponsePackNew resultObj; |
| | | if (optionType == 1)//邮箱 |
| | | { |
| | | resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA, MainPage.LoginUser.userEmailInfo); |
| | | resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA, UserInfo.Current.userEmailInfo); |
| | | } |
| | | else |
| | | { |
| | | resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA, MainPage.LoginUser.userMobileInfo, true, MainPage.LoginUser.areaCode); |
| | | resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA, UserInfo.Current.userMobileInfo, true, UserInfo.Current.areaCode); |
| | | } |
| | | |
| | | if (resultObj.Code != StateCode.SUCCESS) |