| | |
| | | btnAccountViewBottomLine.Height = Application.GetRealHeight(2); |
| | | return; |
| | | } |
| | | if (!Regex.IsMatch(account, @"^[1]+\d{10}") || (account.Length != 11)) |
| | | if (!Utlis.CheckPhoneNumber(phoneNumber, phoneZoneCode)) |
| | | { |
| | | var tip = new Tip() |
| | | { |
| | |
| | | var result = pm.GetRegionByAccount(account); |
| | | if (result.Code != StateCode.SUCCESS) |
| | | { |
| | | IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_GetRegionByAccount, result.Code); |
| | | IMessageCommon.Current.ShowErrorInfoAlter(result.Code); |
| | | return; |
| | | } |
| | | else |
| | |
| | | btnPasswordViewBottomLine.Height = Application.GetRealHeight(2); |
| | | }); |
| | | // 提示错误 |
| | | IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Verification_Send, resultObj.Code); |
| | | IMessageCommon.Current.ShowErrorInfoAlter(resultObj.Code); |
| | | } |
| | | } |
| | | |
| | |
| | | return; |
| | | if (loginType == 0) |
| | | { |
| | | if (!Regex.IsMatch(account, @"^[1]+\d{10}") || (account.Length != 11)) |
| | | if (!Utlis.CheckPhoneNumber(registerPhone, phoneZoneCode)) |
| | | { |
| | | var tip = new Tip() |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | if (!Regex.IsMatch(account, "([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,5})+")) |
| | | if (!Utlis.CheckEmail(registerEmail)) |
| | | { |
| | | var tip = new Tip() |
| | | { |
| | |
| | | { |
| | | if (btnLogin.IsSelected) |
| | | { |
| | | //判断是否同意了隐私政策 |
| | | if (CheckPrivacyPolicy() == false) return; |
| | | |
| | | account = etAccount.Text.Trim(); |
| | | password = etPassword.Text.Trim(); |
| | | |
| | | if (loginType == 0) |
| | | { |
| | | if (!Regex.IsMatch(account, @"^[1]+\d{10}") && account.Length == 11) |
| | | if (!Utlis.CheckPhoneNumber(account, phoneZoneCode)) |
| | | { |
| | | var tip = new Tip() |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | if (!Regex.IsMatch(account, "([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,5})+")) |
| | | if (!Utlis.CheckEmail(account)) |
| | | { |
| | | var tip = new Tip() |
| | | { |
| | |
| | | var result = pm.GetRegionByAccount(account); |
| | | if (result.Code != StateCode.SUCCESS) |
| | | { |
| | | IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_GetRegionByAccount, result.Code); |
| | | IMessageCommon.Current.ShowErrorInfoAlter(result.Code); |
| | | return; |
| | | } |
| | | else |
| | |
| | | else |
| | | { |
| | | // 提示错误 |
| | | IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Gethomepager, responsePack); |
| | | IMessageCommon.Current.ShowErrorInfoAlter(responsePack); |
| | | } |
| | | return result; |
| | | } |