|
|
@@ -18,7 +18,7 @@
|
|
|
<ul>
|
|
|
<li style="margin: 0">
|
|
|
<span class="qy-biaoti"><span class="xingxing">*</span>公司名称</span>
|
|
|
- <input class="inpind" ref="qyname" @change= "spaceName" type="text">
|
|
|
+ <input class="inpind" ref="qyname" @change= "spaceName" type="text" placeholder="请填写公司全称">
|
|
|
<dir class="qy-Tips"><span ref="qyno" style="color:red"></span></dir>
|
|
|
</li>
|
|
|
<li>
|
|
|
@@ -123,7 +123,7 @@ import { setTimeout } from 'timers';
|
|
|
spaceName(){
|
|
|
let qyname = this.$refs.qyname.value.replace(/\s+/g, "");//公司名字过滤空格
|
|
|
if(qyname == ''){
|
|
|
- this.$refs.qyno.innerHTML = '企业名不能为空';
|
|
|
+ this.$refs.qyno.innerHTML = '企业名字不能为空';
|
|
|
} else {
|
|
|
if (this.reg.test(qyname)) {
|
|
|
this.$refs.qyno.innerHTML = '不能包含非法字符';
|
|
|
@@ -157,7 +157,7 @@ import { setTimeout } from 'timers';
|
|
|
yzusername(){
|
|
|
let name = this.$refs.name.value.replace(/\s+/g, "");//姓名过滤空格
|
|
|
if (name == '') {
|
|
|
- this.$refs.usname.innerHTML = '姓名不能为空'
|
|
|
+ this.$refs.usname.innerHTML = '个人姓名不能为空'
|
|
|
} else {
|
|
|
if (this.reg.test(name)) {
|
|
|
this.$refs.usname.innerHTML = '不能包含非法字符'
|
|
|
@@ -172,7 +172,7 @@ import { setTimeout } from 'timers';
|
|
|
address(){
|
|
|
let address = this.$refs.address.value.replace(/\s+/g, "");//过滤空格
|
|
|
if (address == '') {
|
|
|
- this.$refs.ress.innerHTML = '地址不能为空'
|
|
|
+ this.$refs.ress.innerHTML = '企业地址不能为空'
|
|
|
this.isaddressname = false
|
|
|
} else {
|
|
|
this.isaddressname = true
|
|
|
@@ -223,8 +223,10 @@ import { setTimeout } from 'timers';
|
|
|
// console.log('邮箱',this.isemail)//邮箱正则
|
|
|
if (name == '') {
|
|
|
this.$refs.tjtishi.innerHTML = '个人姓名不能为空';
|
|
|
+ this.remotxt()
|
|
|
} else if (qyname == '') {
|
|
|
this.$refs.tjtishi.innerHTML = '企业名字不能为空';
|
|
|
+ this.remotxt()
|
|
|
} else {
|
|
|
switch (this.qymingzi && this.isaddress && this.isname && this.isspaceName && this.isemail && this.isaddressname) {
|
|
|
case this.qymingzi:
|
|
|
@@ -257,27 +259,38 @@ import { setTimeout } from 'timers';
|
|
|
})
|
|
|
this.$refs.tjtishi.innerHTML = '';
|
|
|
} else {
|
|
|
- this.$refs.tjtishi.innerHTML = '企业名字已在优软云注册';
|
|
|
+ this.$refs.tjtishi.innerHTML = '该企业已在优软云注册';
|
|
|
+ this.remotxt()
|
|
|
}
|
|
|
break;
|
|
|
case this.isaddressname:
|
|
|
this.$refs.tjtishi.innerHTML = '企业地址不能为空';
|
|
|
+ this.remotxt()
|
|
|
break;
|
|
|
case this.isaddress:
|
|
|
this.$refs.tjtishi.innerHTML = '企业地址不能包含非法字符';
|
|
|
+ this.remotxt()
|
|
|
break;
|
|
|
case this.isname:
|
|
|
this.$refs.tjtishi.innerHTML = '个人姓名不能包含非法字符';
|
|
|
+ this.remotxt()
|
|
|
break;
|
|
|
case this.isspaceName:
|
|
|
this.$refs.tjtishi.innerHTML = '企业名字不能包含非法字符';
|
|
|
+ this.remotxt()
|
|
|
break;
|
|
|
case this.isemail:
|
|
|
- this.$refs.tjtishi.innerHTML = '请输入正确邮箱';
|
|
|
+ this.$refs.tjtishi.innerHTML = '请填写正确的邮箱';
|
|
|
+ this.remotxt()
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ remotxt(){
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.$refs.tjtishi.innerHTML = ' ';
|
|
|
+ },3000)
|
|
|
+ },
|
|
|
//获取省市区
|
|
|
selected(data){
|
|
|
this.province = data.province.value;
|