authResult.vue
1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
<div class="app_container">
<div class="auth_wrap">
<el-image class="auth_bg" :src="getImage(state.isAuth == '2' ? 'auth-fail.png':'authing.png', '/home')"></el-image>
<div class="auth_result" v-if="state.isAuth == '0'">认证处理中</div>
<div class="auth_result" v-if="state.isAuth == '1'">认证通过</div>
<div class="auth_result" v-if="state.isAuth == '2'">很遗憾,您的认证未通过</div>
<div class="auth_result" v-if="state.isAuth == null">您还没有进行企业认证</div>
<div class="result_dsc" v-if="state.isAuth == '0'">一个工作日内将电话和您<br/>确认申请信息,请注意接听审核电话</div>
<div class="result_dsc result_fail" v-if="state.isAuth == '2'">失败原因:{{state.msg}}</div>
<el-button v-if="state.isAuth == '2' || state.isAuth == null" type="primary" round :loading="loading" @click="linkTo('/baseInfo')" style="width: 80%;margin: 20px auto;display: block;" class="primary-btn">去认证</el-button>
<el-row class="phone_wrap" v-if="state.isAuth == '0'">
<el-col :span="12">来电号码</el-col>
<el-col :span="12" class="phone_num">400-800-1234</el-col>
</el-row>
</div>
</div>
</template>
<script setup lang="ts">
import getImage from './../../assets/getImage'
import './../../assets/css/auth.scss'
import * as api from "./../../interface/api"
import router from "../../router/index";
const arrowPath = ref("/product")
defineExpose({arrowPath})
let state = reactive({
isAuth: null,
msg: null,
})
api.getAuthStatus().then(res=> {
state.isAuth = res.data.status
state.msg = res.data.msg
})
let linkTo = (url) => {
router.push(url)
}
</script>
<style scoped>
</style>