| | |
| | | <template> |
| | | <div> |
| | | </div> |
| | | <div></div> |
| | | </template> |
| | | <script> |
| | | import { tokenUtils } from '@/utils/axios.js'; |
| | |
| | | export default { |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | |
| | | } |
| | | return {} |
| | | }, |
| | | computed: { |
| | | query() { |
| | |
| | | } |
| | | }, |
| | | async created() { |
| | | if (tokenUtils.getAccessToken()) { |
| | | const canVerify = await this.getCanVerify() |
| | | if (canVerify) { |
| | | this.$router.replace(`/h5/verForm/${this.appId}`) |
| | | } |
| | | // else { |
| | | // this.$router.replace('/h5/noVerAccess') |
| | | // } |
| | | if (!this.getIsFace()) { |
| | | this.$router.replace({ path: '/h5/face', query: { appId: this.appId }}) |
| | | } else if (!this.getIsSignup()) { |
| | | this.$router.replace({ path: '/h5/signup', query: { appId: this.appId } }) |
| | | } else { |
| | | this.$message.error('请先登录') |
| | | this.$router.replace({ path: '/h5/login', query: { appId: this.appId } }) |
| | | this.$router.replace({ path: '/h5/verForm', query: { appId: this.appId }}) |
| | | } |
| | | } else { |
| | | this.$router.replace('/h5/noVerAccess') |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | getIsFace() { |
| | | return Boolean(localStorage.getItem('isFace')) |
| | | }, |
| | | getIsSignup() { |
| | | return Boolean(localStorage.getItem('isSignup')) |
| | | } |
| | | } |
| | | } |
| | | </script> |