authResult.vue 1.87 KB
<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>