签章流程
This commit is contained in:
@@ -171,9 +171,9 @@
|
||||
timeS = 60
|
||||
timer = setInterval(() => {
|
||||
timeS--
|
||||
if (timeS == 0) {
|
||||
this.stopTimer()
|
||||
if (timeS <= 0) {
|
||||
this.smsTips = "重新发送"
|
||||
this.stopTimer()
|
||||
} else {
|
||||
this.smsTips = timeS + "秒"
|
||||
}
|
||||
@@ -196,7 +196,10 @@
|
||||
}
|
||||
},
|
||||
onUnload() {
|
||||
this.stopTimer()
|
||||
if (timer != null) {
|
||||
clearInterval(timer)
|
||||
timer = null
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -54,7 +54,20 @@
|
||||
<input type="password" class="form-control" v-model="form1.repassword"
|
||||
placeholder="确认登录密码" autocomplete="off">
|
||||
</div>
|
||||
|
||||
<div v-show="form1.accountType == 1" class="input-group clear">
|
||||
<div class="input-group-addon">
|
||||
<i class="icon_yaoqingma"></i>
|
||||
</div>
|
||||
<input type="text" class="form-control" v-model="form1.person.personName"
|
||||
placeholder="请输入姓名" autocomplete="off">
|
||||
</div>
|
||||
<div v-show="form1.accountType == 2" class="input-group clear">
|
||||
<div class="input-group-addon">
|
||||
<i class="icon_yaoqingma"></i>
|
||||
</div>
|
||||
<input type="text" class="form-control" v-model="form1.company.companyName"
|
||||
placeholder="请输入公司名称" autocomplete="off">
|
||||
</div>
|
||||
<div class="input-group clear">
|
||||
<div class="input-group-addon">
|
||||
<i class="icon_yaoqingma"></i>
|
||||
@@ -103,6 +116,12 @@
|
||||
password: '',
|
||||
repassword: '',
|
||||
inviteCode: '',
|
||||
person: {
|
||||
personName: ''
|
||||
},
|
||||
company: {
|
||||
companyName: ''
|
||||
}
|
||||
}
|
||||
};
|
||||
},
|
||||
@@ -125,9 +144,9 @@
|
||||
timeS = 60
|
||||
timer = setInterval(() => {
|
||||
timeS--
|
||||
if (timeS == 0) {
|
||||
this.stopTimer()
|
||||
if (timeS <= 0) {
|
||||
this.smsTips = "重新发送"
|
||||
this.stopTimer()
|
||||
} else {
|
||||
this.smsTips = timeS + "秒"
|
||||
}
|
||||
@@ -146,7 +165,9 @@
|
||||
password, // 密码 6-20位
|
||||
repassword, // 重复输入密码
|
||||
inviteCode, // 邀请码
|
||||
accountType
|
||||
accountType,
|
||||
company,
|
||||
person
|
||||
} = this.form1
|
||||
|
||||
vk.userCenter.loginBySms({
|
||||
@@ -156,7 +177,10 @@
|
||||
code: smsCode,
|
||||
password,
|
||||
inviteCode,
|
||||
accountType
|
||||
accountType,
|
||||
company,
|
||||
person
|
||||
|
||||
},
|
||||
success: (data) => {
|
||||
uni.reLaunch({
|
||||
@@ -175,6 +199,9 @@
|
||||
password, // 密码 6-20位
|
||||
repassword, // 重复输入密码
|
||||
inviteCode, // 邀请码
|
||||
accountType,
|
||||
company,
|
||||
person
|
||||
} = this.form1;
|
||||
|
||||
// 手机号验证
|
||||
@@ -218,14 +245,39 @@
|
||||
return false
|
||||
// 处理错误逻辑
|
||||
}
|
||||
|
||||
if(accountType == 1 && !person.personName) {
|
||||
this.$message({
|
||||
message: '请输入姓名',
|
||||
type: 'error'
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
if(accountType == 2 && !company.companyName) {
|
||||
this.$message({
|
||||
message: '请输入公司名称',
|
||||
type: 'error'
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
return true
|
||||
|
||||
}
|
||||
},
|
||||
stopTimer() {
|
||||
if (timer != null) {
|
||||
clearInterval(timer)
|
||||
timer = null
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
onUnload() {
|
||||
if (timer != null) {
|
||||
clearInterval(timer)
|
||||
timer = null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user