|
|
@@ -171,7 +171,7 @@
|
|
|
if (type == 1) {
|
|
|
if (!/^1[34578]\d{9}$/.test(this.phone)) {
|
|
|
this.error = true;
|
|
|
- this.$message.success('手机格式不正确!')
|
|
|
+ this.$message.error('手机格式不正确!')
|
|
|
this.phone = '';
|
|
|
} else {
|
|
|
this.error = false;
|
|
|
@@ -180,7 +180,7 @@
|
|
|
else if (type == 10) {
|
|
|
if (!/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/.test(this.eMail)) {
|
|
|
this.emailError = true;
|
|
|
- this.$message.success('邮箱格式不正确!')
|
|
|
+ this.$message.error('邮箱格式不正确!')
|
|
|
this.eMail = '';
|
|
|
} else {
|
|
|
this.emailError = false;
|