<template>
  <div>
    <!-- 个人认证 -->
    <BackBar :title="$t('auth.l36')"></BackBar>
    <div class="container flex">
      <img class="icon" src="/img/auth/icon2.png" alt="极度证券">
      <div class="title">
        <!-- 资质信息审核未通过 -->
        {{ $t('auth.l') }}
      </div>
      <div class="tip">
        {{ identity_bak }}
      </div>
      <div class="btn-box">
        <div class="btn" @click="$router.replace('/auth')">
          <!-- 修改信息重新提交 -->
          {{ $t('auth.l1') }}
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import {getReviewCommentList } from '@/api/user'
import BackBar from '@/components/backBar'
import { mapGetters } from 'vuex'
export default {
  components: {
    BackBar
  },
  data () {
    return {
      identity_bak: ''
    }
  },
  created () {
    this.getReviewCommentList()
  },
  computed: {
    ...mapGetters(['userInfo']),
  },
  methods: {
    getReviewCommentList() {
      getReviewCommentList({
        model: 'User',
        type: 'real',
      }).then(res => {
        var list = res.list || []
        if (list[0]) {
          this.identity_bak = list[0].comment
        }
      }).catch(() => {})
    },
  }
}
</script>
<style lang="less" scoped>
.container {
  min-height: calc(100vh - 50px);
  padding: 20px 40px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  .icon {
    width: 104px;
  }
  .title {
    color: #000;
    font-weight: 500;
    font-size: 20px;
    margin-top: 11px;
    margin-bottom: 15px;
  }
  .tip {
    color: #A2A2A2;
    line-height: 18px;
    font-size: 12px;
  }
  .btn-box {
    width: 100%;
    padding: 36px 16px 0;
    .btn {
      background-color: var(--color-);
      line-height: 44px;
      border-radius: 22px;
      color: #fff;
      cursor: pointer;
      font-size: 16px;
    }
  }
}
</style>