|
@@ -10,7 +10,7 @@
|
|
|
<form ref="regForm" style="margin: 50px auto;">
|
|
|
<!-- active0 -->
|
|
|
<ul class="fhlist" style="width: 600px;margin:0 auto">
|
|
|
- <li class="mt10">
|
|
|
+ <li class="mt20">
|
|
|
<span class="title">
|
|
|
<em class="fvx">*</em>手机号</span>
|
|
|
|
|
@@ -22,7 +22,7 @@
|
|
|
</span>
|
|
|
</li>
|
|
|
|
|
|
- <li class="mt10">
|
|
|
+ <li class="mt20">
|
|
|
<span class="title"><em class="fvx">*</em>校验码</span>
|
|
|
<input type="text" name="code" v-model="code" class="ui-ipt iptform2" placeholder="输入校验码">
|
|
|
|
|
@@ -36,12 +36,12 @@
|
|
|
</span> -->
|
|
|
</li>
|
|
|
|
|
|
- <li class="mt10">
|
|
|
+ <li class="mt20">
|
|
|
<span class="title"><em class="fvx">*</em>姓名</span>
|
|
|
<input type="text" name="name" v-model="name" class="ui-ipt iptform" placeholder="输入真实姓名" clearable>
|
|
|
</li>
|
|
|
|
|
|
- <li class="mt10">
|
|
|
+ <li class="mt20">
|
|
|
<span class="title"><em class="fvx">*</em>身份证</span>
|
|
|
<input type="text" name="cardId" v-model="cardId" class="ui-ipt iptform" placeholder="输入证件号" clearable>
|
|
|
|
|
@@ -51,13 +51,13 @@
|
|
|
</span>
|
|
|
</li>
|
|
|
|
|
|
- <li class="mt10">
|
|
|
+ <li class="mt20">
|
|
|
<span class="title"><em class="fvx">*</em>学历</span>
|
|
|
<input type="text" name="education" v-model="education" class="ui-ipt iptform" placeholder="输入学历" clearable>
|
|
|
</li>
|
|
|
|
|
|
|
|
|
- <li class="mt10">
|
|
|
+ <li class="mt20">
|
|
|
<span class="title"><em class="fvx">*</em>工作单位</span>
|
|
|
<input type="text" name="company" v-model="company" class="ui-ipt iptform" placeholder="输入工作单位" clearable>
|
|
|
</li>
|
|
@@ -71,7 +71,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <li class="mb5">
|
|
|
+ <!-- <li class="mb5">
|
|
|
<span class="title">
|
|
|
<em class="fvx">*</em>账户密码</span>
|
|
|
<input type="password" v-model="password" autocomplete="new-password" class="ui-ipt iptform ng-pristine ng-valid-pattern ng-invalid ng-invalid-required"
|
|
@@ -102,7 +102,7 @@
|
|
|
<span class="p-ico ico-formver"></span>
|
|
|
<span class="p-ico ico-worm"></span>前后密码不一致!
|
|
|
</span>
|
|
|
- </li>
|
|
|
+ </li> -->
|
|
|
|
|
|
<li class="mb5">
|
|
|
<span class="title"> </span>
|
|
@@ -149,26 +149,26 @@
|
|
|
rules: data.rulesData(this.validatePass)
|
|
|
};
|
|
|
},
|
|
|
- watch: {
|
|
|
- password(val) {
|
|
|
- if (val.length < 6) {
|
|
|
- this.passwordLevel = 'sick';
|
|
|
- return
|
|
|
- }
|
|
|
- let pattern = [/[^0-9a-zA-Z]/, /[0-9a-z]/, /[A-Z]/];
|
|
|
- let patnum = 0
|
|
|
- for (let i = 0; i < pattern.length; i++) {
|
|
|
- if (pattern[i].test(val)) patnum++
|
|
|
- }
|
|
|
- if (patnum == 3) {
|
|
|
- this.passwordLevel = 'strong';
|
|
|
- } else if (patnum == 2) {
|
|
|
- this.passwordLevel = 'middle';
|
|
|
- } else {
|
|
|
- this.passwordLevel = 'sick';
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
+ // watch: {
|
|
|
+ // password(val) {
|
|
|
+ // if (val.length < 6) {
|
|
|
+ // this.passwordLevel = 'sick';
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // let pattern = [/[^0-9a-zA-Z]/, /[0-9a-z]/, /[A-Z]/];
|
|
|
+ // let patnum = 0
|
|
|
+ // for (let i = 0; i < pattern.length; i++) {
|
|
|
+ // if (pattern[i].test(val)) patnum++
|
|
|
+ // }
|
|
|
+ // if (patnum == 3) {
|
|
|
+ // this.passwordLevel = 'strong';
|
|
|
+ // } else if (patnum == 2) {
|
|
|
+ // this.passwordLevel = 'middle';
|
|
|
+ // } else {
|
|
|
+ // this.passwordLevel = 'sick';
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // },
|
|
|
methods: {
|
|
|
submitData() {
|
|
|
let that = this
|
|
@@ -179,7 +179,7 @@
|
|
|
company: this.company,
|
|
|
education: this.education,
|
|
|
cardId: this.cardId,
|
|
|
- password: md5(this.password)
|
|
|
+ // password: md5(this.password)
|
|
|
}
|
|
|
httpServer("Auth.register", param).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -253,8 +253,8 @@
|
|
|
if (this.isPhoneErr()) return false;
|
|
|
if (!this.is_ok_card(this.cardId)) return false;
|
|
|
if (!this.name) return false;
|
|
|
- if (!this.password || this.password != this.confirmPassword) return false;
|
|
|
- if (this.password.length < 6) return false;
|
|
|
+ // if (!this.password || this.password != this.confirmPassword) return false;
|
|
|
+ // if (this.password.length < 6) return false;
|
|
|
if (this.code.length < 4) return false;
|
|
|
return true;
|
|
|
},
|