| | |
| | | this.$router.replace('/h5/noVerAccess') |
| | | return |
| | | } |
| | | const checkinExist = await this.getCheckinExist() |
| | | if (checkinExist) { |
| | | const getCheckIsSubmit = await this.getCheckIsSubmit() |
| | | if (getCheckIsSubmit) { |
| | | this.$router.replace({ path: '/h5/verForm', query: { appId: this.appId }}) |
| | | } else { |
| | | this.$router.replace({ path: '/h5/face', query: { appId: this.appId }}) |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | getCheckIsSubmit() { |
| | | return new Promise((resolve) => { |
| | | const params = { applicationId: this.appId } |
| | | this.$axios.get('/exam/verify-record/get-by-application-id', { params }).then(res => { |
| | | if (res.data.code == 0) { |
| | | resolve(res.data.data.isVerified) |
| | | } else { |
| | | resolve(false) |
| | | } |
| | | }, () => { |
| | | resolve(false) |
| | | }) |
| | | }) |
| | | }, |
| | | getCheckinExist() { |
| | | return new Promise((resolve) => { |
| | | const params = { |