var reg=/^(((13[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[3-8]{1})|(18[0-9]{1})|(19[0-9]{1})|(14[5-7]{1}))+\d{8})$/var _that = thisif(this.phone ==''|| this.phone == undefined ){ layer.msg("请输入手机号码")}else if(!reg.test(this.phone)){ layer.msg("手机号码格式不正确")}else{}