92ba1c1c by zhangmeng

账号注册

1 parent e0aef7c0
......@@ -317,6 +317,7 @@ function codeSuccess(msg) {
}
}
}).catch(err => {
console.log(err)
isCodeTrue.value = 0
})
}
......@@ -326,6 +327,7 @@ function codeSuccess(msg) {
isCodeTrue.value = 1
ElMessage.success(language.value == 0 ? '发送成功,请关注邮箱邮件' : 'Send success, please check your email')
}).catch(err => {
console.log(err)
isCodeTrue.value = 1
})
}
......@@ -420,7 +422,8 @@ function next() {
sex: wdsfData.value.sex,
certName: wdsfData.value.certName,
birth: wdsfData.value.birthday,
passportNumber: wdsfData.value.passportNumber
passportNumber: wdsfData.value.passportNumber,
ocrFlag: '1'
}
if (Array.isArray(wdsfData.value.passportUrl)) {
obj.passportUrl = wdsfData.value.passportUrl[0].url
......@@ -428,6 +431,7 @@ function next() {
obj.passportUrl = wdsfData.value.passportUrl || ''
}
registerSingle(obj).then(res => {
debugger
setToken(res.data.token)
afterR()
})
......@@ -444,7 +448,8 @@ function next() {
birth: wdsfData.value.birthday,
personId: wdsfData.value.personId,
username: wdsfData.value.email,
password: form.value.password
password: form.value.password,
ocrFlag: '1'
}
if (Array.isArray(wdsfData.value.passportUrl)) {
obj.passportUrl = wdsfData.value.passportUrl[0].url
......@@ -455,7 +460,7 @@ function next() {
setToken(res.data.token)
afterR()
}).catch(err => {
console.log(err)
})
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!