账号注册
Showing
1 changed file
with
8 additions
and
3 deletions
| ... | @@ -317,6 +317,7 @@ function codeSuccess(msg) { | ... | @@ -317,6 +317,7 @@ function codeSuccess(msg) { |
| 317 | } | 317 | } |
| 318 | } | 318 | } |
| 319 | }).catch(err => { | 319 | }).catch(err => { |
| 320 | console.log(err) | ||
| 320 | isCodeTrue.value = 0 | 321 | isCodeTrue.value = 0 |
| 321 | }) | 322 | }) |
| 322 | } | 323 | } |
| ... | @@ -326,6 +327,7 @@ function codeSuccess(msg) { | ... | @@ -326,6 +327,7 @@ function codeSuccess(msg) { |
| 326 | isCodeTrue.value = 1 | 327 | isCodeTrue.value = 1 |
| 327 | ElMessage.success(language.value == 0 ? '发送成功,请关注邮箱邮件' : 'Send success, please check your email') | 328 | ElMessage.success(language.value == 0 ? '发送成功,请关注邮箱邮件' : 'Send success, please check your email') |
| 328 | }).catch(err => { | 329 | }).catch(err => { |
| 330 | console.log(err) | ||
| 329 | isCodeTrue.value = 1 | 331 | isCodeTrue.value = 1 |
| 330 | }) | 332 | }) |
| 331 | } | 333 | } |
| ... | @@ -420,7 +422,8 @@ function next() { | ... | @@ -420,7 +422,8 @@ function next() { |
| 420 | sex: wdsfData.value.sex, | 422 | sex: wdsfData.value.sex, |
| 421 | certName: wdsfData.value.certName, | 423 | certName: wdsfData.value.certName, |
| 422 | birth: wdsfData.value.birthday, | 424 | birth: wdsfData.value.birthday, |
| 423 | passportNumber: wdsfData.value.passportNumber | 425 | passportNumber: wdsfData.value.passportNumber, |
| 426 | ocrFlag: '1' | ||
| 424 | } | 427 | } |
| 425 | if (Array.isArray(wdsfData.value.passportUrl)) { | 428 | if (Array.isArray(wdsfData.value.passportUrl)) { |
| 426 | obj.passportUrl = wdsfData.value.passportUrl[0].url | 429 | obj.passportUrl = wdsfData.value.passportUrl[0].url |
| ... | @@ -428,6 +431,7 @@ function next() { | ... | @@ -428,6 +431,7 @@ function next() { |
| 428 | obj.passportUrl = wdsfData.value.passportUrl || '' | 431 | obj.passportUrl = wdsfData.value.passportUrl || '' |
| 429 | } | 432 | } |
| 430 | registerSingle(obj).then(res => { | 433 | registerSingle(obj).then(res => { |
| 434 | debugger | ||
| 431 | setToken(res.data.token) | 435 | setToken(res.data.token) |
| 432 | afterR() | 436 | afterR() |
| 433 | }) | 437 | }) |
| ... | @@ -444,7 +448,8 @@ function next() { | ... | @@ -444,7 +448,8 @@ function next() { |
| 444 | birth: wdsfData.value.birthday, | 448 | birth: wdsfData.value.birthday, |
| 445 | personId: wdsfData.value.personId, | 449 | personId: wdsfData.value.personId, |
| 446 | username: wdsfData.value.email, | 450 | username: wdsfData.value.email, |
| 447 | password: form.value.password | 451 | password: form.value.password, |
| 452 | ocrFlag: '1' | ||
| 448 | } | 453 | } |
| 449 | if (Array.isArray(wdsfData.value.passportUrl)) { | 454 | if (Array.isArray(wdsfData.value.passportUrl)) { |
| 450 | obj.passportUrl = wdsfData.value.passportUrl[0].url | 455 | obj.passportUrl = wdsfData.value.passportUrl[0].url |
| ... | @@ -455,7 +460,7 @@ function next() { | ... | @@ -455,7 +460,7 @@ function next() { |
| 455 | setToken(res.data.token) | 460 | setToken(res.data.token) |
| 456 | afterR() | 461 | afterR() |
| 457 | }).catch(err => { | 462 | }).catch(err => { |
| 458 | 463 | console.log(err) | |
| 459 | }) | 464 | }) |
| 460 | } | 465 | } |
| 461 | } | 466 | } | ... | ... |
-
Please register or sign in to post a comment