From e1b028d486713eaf55aaf35fbf334aa568059c0d Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 14 四月 2026 15:46:54 +0800
Subject: [PATCH] 项目复制
---
src/views/h5/addrVerify/index.vue | 80 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 80 insertions(+), 0 deletions(-)
diff --git a/src/views/h5/addrVerify/index.vue b/src/views/h5/addrVerify/index.vue
new file mode 100644
index 0000000..6c4bc70
--- /dev/null
+++ b/src/views/h5/addrVerify/index.vue
@@ -0,0 +1,80 @@
+<template>
+ <div></div>
+</template>
+<script>
+export default {
+ components: {},
+ data() {
+ return {}
+ },
+ computed: {
+ appId() {
+ return this.$route.query.appId
+ }
+ },
+ async created() {
+ const canVerify = await this.getCanVerify()
+ if (!canVerify) {
+ this.$router.replace('/h5/noVerAccess')
+ return
+ }
+ 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 }})
+ }
+ },
+ mounted() {
+ document.title = '鑰冪偣鏍搁獙'
+ },
+ methods: {
+ getCanVerify() {
+ return new Promise((resolve) => {
+ const params = {
+ applicationId: this.appId
+ }
+ this.$axios.get('/exam/verify-record/can-verify', { params }).then(res => {
+ if (res.data.code == 0) {
+ resolve(res.data.data)
+ } else {
+ resolve(false)
+ }
+ }, () => {
+ resolve(false)
+ })
+ })
+ },
+ 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 = {
+ targetId: this.appId
+ }
+ this.$axios.get('/exam/staff/checkin/exist', { params }).then(res => {
+ if (res.data.code == 0) {
+ resolve(res.data.data)
+ } else {
+ resolve(false)
+ }
+ }, () => {
+ resolve(false)
+ })
+ })
+ },
+ }
+}
+</script>
\ No newline at end of file
--
Gitblit v1.8.0