| | |
| | | /// <param name="phone">手机号</param> |
| | | /// <param name="zoneCode">区号</param> |
| | | /// <returns></returns> |
| | | public bool CheckPhoneWithZone(string phone,string zoneCode) |
| | | public bool CheckPhoneWithZone(string phone, string zoneCode) |
| | | { |
| | | if(zoneCode=="86") |
| | | if (zoneCode == "86") |
| | | { |
| | | var regex = new Regex(CommonPage.PhoneRegexStr); |
| | | return regex.IsMatch(phone); |
| | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region ◆ 密码____________________________ |
| | | |
| | | /// <summary> |
| | | /// 检查密码长度合法性 |
| | | /// </summary> |
| | | /// <param name="password"></param> |
| | | /// <returns></returns> |
| | | public bool CheckPwdLength(string password) |
| | | { |
| | | if (password.Trim().Length >= 6 && password.Trim().Length <= 13) |
| | | { |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |