|
|
@@ -317,6 +317,7 @@
|
|
|
if (this.enterprise1.vipName !== '') {
|
|
|
if (value.length > 20) {
|
|
|
callback(new Error('输入长度过长,20个字符以内'))
|
|
|
+ this.vipNameChecked = false
|
|
|
} else {
|
|
|
this.vipNameChecked = true
|
|
|
}
|
|
|
@@ -431,7 +432,7 @@
|
|
|
this.emailChecked = true
|
|
|
this.emailHasRegister = false
|
|
|
} else {
|
|
|
- if (value && this.enterprise1.email) {
|
|
|
+ if (this.enterprise1.email) {
|
|
|
var reg = /^([\w-])+(\.\w+)*@([\w-])+((\.\w{2,3}){1,3})$/
|
|
|
if (!reg.test(value)) {
|
|
|
callback(new Error('请输入正确的邮箱地址格式'))
|
|
|
@@ -497,7 +498,7 @@
|
|
|
vipNameChecked: false,
|
|
|
passwordChecked: false,
|
|
|
passwordConfirmChecked: false,
|
|
|
- emailChecked: false,
|
|
|
+ emailChecked: true,
|
|
|
isHasRegister: false,
|
|
|
isHasEmail: false,
|
|
|
goNextStep: true,
|
|
|
@@ -643,13 +644,13 @@
|
|
|
if (!this.enterprise.mobile) {
|
|
|
this.$message.error('手机号不能为空')
|
|
|
} else if (!this.mobileChecked) {
|
|
|
- this.$message.error('请填写正确的手机号')
|
|
|
+ this.$message.error('手机号输入有误,请按提示重新输入')
|
|
|
} else if (!this.token) {
|
|
|
this.$message.error('请先获取验证码')
|
|
|
} else if (!this.enterprise.code) {
|
|
|
this.$message.error('验证码不能为空')
|
|
|
} else if (!this.codeChecked) {
|
|
|
- this.$message.error('请填写正确的验证码')
|
|
|
+ this.$message.error('验证码输入有误,请按提示重新输入')
|
|
|
} else if (!this.checked) {
|
|
|
this.$message.error('您对阅读条款未做勾选')
|
|
|
}
|
|
|
@@ -658,50 +659,48 @@
|
|
|
// 确认注册
|
|
|
sureRegister () {
|
|
|
if (!this.isHasRegister) {
|
|
|
- if (this.spaceNameChecked && this.businessCodeChecked && this.vipNameChecked && this.passwordChecked && this.passwordConfirmChecked && this.checked) {
|
|
|
+ if (this.spaceNameChecked && this.businessCodeChecked && this.vipNameChecked && this.passwordChecked && this.passwordConfirmChecked && this.emailChecked && this.checked) {
|
|
|
this.submitRegister()
|
|
|
} else {
|
|
|
if (!this.enterprise1.spaceName) {
|
|
|
this.$message.error('企业名不能为空')
|
|
|
} else if (!this.spaceNameChecked) {
|
|
|
- this.$message.error('请填写正确的企业名')
|
|
|
+ this.$message.error('企业名称输入有误,请按提示重新输入')
|
|
|
} else if (!this.enterprise1.businessCode) {
|
|
|
this.$message.error('营业执照号不能为空')
|
|
|
} else if (!this.businessCodeChecked) {
|
|
|
- this.$message.error('请填写正确的营业执照号')
|
|
|
+ this.$message.error('营业执照号输入有误,请按提示重新输入')
|
|
|
} else if (!this.enterprise1.vipName) {
|
|
|
this.$message.error('管理员姓名不能为空')
|
|
|
} else if (!this.vipNameChecked) {
|
|
|
- this.$message.error('请填写正确的管理员姓名')
|
|
|
+ this.$message.error('管理员姓名输入有误,请按提示重新输入')
|
|
|
} else if (!this.enterprise1.password) {
|
|
|
this.$message.error('密码不能为空')
|
|
|
} else if (!this.passwordChecked) {
|
|
|
- this.$message.error('密码格式不正确')
|
|
|
+ this.$message.error('密码输入有误,请按提示重新输入')
|
|
|
} else if (!this.enterprise1.confirm) {
|
|
|
this.$message.error('请再次输入密码')
|
|
|
} else if (this.enterprise1.password !== this.enterprise1.confirm) {
|
|
|
this.$message.error('请确认两次填写密码是否一致')
|
|
|
- } else if (this.enterprise1.email) {
|
|
|
- if (!this.emailChecked) {
|
|
|
- this.$message.error('邮箱格式不正确')
|
|
|
- }
|
|
|
+ } else if (this.enterprise1.email && !this.emailChecked) {
|
|
|
+ this.$message.error('邮箱输入有误,请按提示重新输入')
|
|
|
} else if (!this.checked) {
|
|
|
this.$message.error('您对阅读条款未做勾选')
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
if (this.isHasEmail) {
|
|
|
- if (this.spaceNameChecked && this.businessCodeChecked && this.passwordChecked) {
|
|
|
+ if (this.spaceNameChecked && this.businessCodeChecked && this.passwordChecked && this.checked) {
|
|
|
this.submitRegister()
|
|
|
} else {
|
|
|
if (!this.enterprise1.spaceName) {
|
|
|
this.$message.error('企业名不能为空')
|
|
|
} else if (!this.spaceNameChecked) {
|
|
|
- this.$message.error('请填写正确的企业名')
|
|
|
+ this.$message.error('企业名称输入有误,请按提示重新输入')
|
|
|
} else if (!this.enterprise1.businessCode) {
|
|
|
this.$message.error('营业执照号不能为空')
|
|
|
} else if (!this.businessCodeChecked) {
|
|
|
- this.$message.error('请填写正确的营业执照号')
|
|
|
+ this.$message.error('营业执照号输入有误,请按提示重新输入')
|
|
|
} else if (!this.enterprise1.password) {
|
|
|
this.$message.error('密码不能为空')
|
|
|
} else if (!this.checked) {
|
|
|
@@ -709,23 +708,21 @@
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- if (this.spaceNameChecked && this.businessCodeChecked && this.passwordChecked) {
|
|
|
+ if (this.spaceNameChecked && this.businessCodeChecked && this.passwordChecked && this.emailChecked && this.checked) {
|
|
|
this.submitRegister()
|
|
|
} else {
|
|
|
if (!this.enterprise1.spaceName) {
|
|
|
this.$message.error('企业名不能为空')
|
|
|
} else if (!this.spaceNameChecked) {
|
|
|
- this.$message.error('请填写正确的企业名')
|
|
|
+ this.$message.error('企业名称输入有误,请按提示重新输入')
|
|
|
} else if (!this.enterprise1.businessCode) {
|
|
|
this.$message.error('营业执照号不能为空')
|
|
|
} else if (!this.businessCodeChecked) {
|
|
|
- this.$message.error('请填写正确的营业执照号')
|
|
|
+ this.$message.error('营业执照号输入有误,请按提示重新输入')
|
|
|
} else if (!this.enterprise1.password) {
|
|
|
this.$message.error('密码不能为空')
|
|
|
- } else if (this.enterprise1.email) {
|
|
|
- if (!this.emailChecked) {
|
|
|
- this.$message.error('邮箱格式不正确')
|
|
|
- }
|
|
|
+ } else if (this.enterprise1.email && !this.emailChecked) {
|
|
|
+ this.$message.error('邮箱输入有误,请按提示重新输入')
|
|
|
} else if (!this.checked) {
|
|
|
this.$message.error('您对阅读条款未做勾选')
|
|
|
}
|