|
@@ -16,10 +16,11 @@
|
|
|
<div v-if="flag" class="title-box clearfix"> <h3 class="login-title fl">注册</h3> <h4 class="num fr" @click="toLogin">登录</h4></div>
|
|
|
<div v-else class="title-box clearfix"> <h3 class="login-title fl">其他信息</h3> <h4 class="num fr num2">2/2</h4></div>
|
|
|
<form>
|
|
|
- <div class="main" v-if="flag">
|
|
|
+ <div class="main" v-show="flag">
|
|
|
<!-- <p>手机号</p> -->
|
|
|
<input type="tel" name="" v-model="phone" maxlength="11" @input="handleTelInput"
|
|
|
@blur="checkPhone" placeholder="请输入用户名或手机号">
|
|
|
+
|
|
|
<!-- <p>密码</p> -->
|
|
|
<input type="password" name="" v-model="psw" minlength="6" maxlength="16" @blur="checkPsw" placeholder="请输入密码">
|
|
|
|
|
@@ -43,14 +44,14 @@
|
|
|
<div class="next nextCor" @click="toNext" v-else>下一步</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="main" v-else>
|
|
|
+ <div class="main" v-show="!flag">
|
|
|
<!-- <p>联系邮箱</p> -->
|
|
|
- <input type="email" name="" v-model="email" @blur="checkEmail" placeholder="请输入联系邮箱">
|
|
|
+ <input type="email" name="" v-model="email" @blur="checkEmail" placeholder="请输入联系邮箱" autocomplete="off">
|
|
|
<!-- <p>机构名称</p> -->
|
|
|
- <input type="text" name="" v-model="agencyName" maxlength="20" placeholder="请输入机构名称">
|
|
|
+ <input type="text" name="" v-model="agencyName" maxlength="20" placeholder="请输入机构名称" autocomplete="off">
|
|
|
<!-- <p>联系人</p> -->
|
|
|
<!-- <input type="text" name="" v-model="contact" @input="handleContInput"> -->
|
|
|
- <input type="text" name="" v-model="contact" maxlength="10" @blur="handleContInput" placeholder="请输入联系人">
|
|
|
+ <input type="text" name="" v-model="contact" maxlength="10" @blur="handleContInput" placeholder="请输入联系人" autocomplete="off">
|
|
|
<div class="next" v-if="submitCor">立即注册</div>
|
|
|
<div class="next nextCor" @click="submit" v-else>立即注册</div>
|
|
|
</div>
|
|
@@ -85,7 +86,7 @@
|
|
|
changCor: true,
|
|
|
submitCor: true,
|
|
|
imgCodeErr: false,
|
|
|
- time: 60,
|
|
|
+ time: 180,
|
|
|
timer: null,//按钮倒计时
|
|
|
timerFlag: false,//倒计时标识
|
|
|
complete: false, //注册进度条
|
|
@@ -231,7 +232,6 @@
|
|
|
},
|
|
|
getMsgCode() {//获取短信验证码
|
|
|
//手机号、密码、联系人、图形验证码不为空且符合规则且图形验证码正确--shenq10.26
|
|
|
- console.log('sadad')
|
|
|
if(!this.phone.trim() && !this.phoneRg){
|
|
|
this.imgCodeErr = true;
|
|
|
this.codeErrText = "手机号不能为空";
|
|
@@ -351,10 +351,11 @@
|
|
|
const email = this.email;
|
|
|
if (email.trim()) {
|
|
|
if (!emailReg.test(email)) {
|
|
|
- /*this.$message({
|
|
|
- message: '邮箱格式不正确',
|
|
|
- type: 'warning'
|
|
|
- });*/
|
|
|
+ // this.$message({
|
|
|
+ // message: '邮箱格式不正确',
|
|
|
+ // type: 'warning'
|
|
|
+ // });
|
|
|
+
|
|
|
this.imgCodeErr = true;
|
|
|
this.codeErrText = "邮箱格式不正确";
|
|
|
this.email = "";
|