拓恒飞手平台小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
526B

  1. // 校验密码 字母数字组合
  2. export const checkPassword = function(value) {
  3. let reg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{2,13}$/
  4. return reg.test(value)
  5. }
  6. // 校验号码 11位,符合大陆手机号码
  7. export const checkPhoneNumber = function(value) {
  8. let reg = /^[1][3,4,5,7,8][0-9]{9}$/
  9. return reg.test(value)
  10. }
  11. // 用户名校验 大小写字母、数字、汉字组合
  12. export const checkUserName = function(value){
  13. let reg = /^[\u4e00-\u9fa5a-zA-Z0-9]{1,10}$/
  14. return reg.test(value)
  15. }