<template>
  <div class="d-page d-flex flex-column">
    <title-bar title="授信一览" @clickLeft="onClick">
      <van-icon slot="left" name="cross" size="24" />
    </title-bar>
    <div class="information-container h-scroller flex-1-dhc">
      <van-index-bar highlight-color="#F79400" :index-list="indexList">
        <van-index-anchor index="出账信息">
          <sub-title>出账信息</sub-title>
        </van-index-anchor>
        <billing-information></billing-information>
        <van-index-anchor index="贷款信息">
          <sub-title>贷款信息</sub-title>
        </van-index-anchor>
        <loan-information></loan-information>
        <van-index-anchor index="申请信息">
          <sub-title>申请信息</sub-title>
        </van-index-anchor>
        <application-information></application-information>
      </van-index-bar>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import TitleBar from "@/components/general/TitleBar.vue";
import ApplicationInformation from "@/components/customer-information/family-financial-information/ApplicationInformation.vue";
import BillingInformation from "@/components/customer-information/family-financial-information/BillingInformation.vue";
import LoanInformation from "@/components/customer-information/family-financial-information/LoanInformation.vue";
/**
 * @Description 授信一览
 * @Author JiangTao
 * @Date 2021-11-10 下午 03:21
 */
@Component({
  name: "CreditDetails",
  components: { TitleBar, BillingInformation, LoanInformation, ApplicationInformation },
})
export default class CreditDetails extends Vue {
  pageTitle = ""; // 页面标题
  indexList = [ "出账信息", "贷款信息", "申请信息"];

  onClick() {
    this.$router.go(-1);
  }
  mounted() {
    this.pageTitle = this.$route.meta?.name;
  }
}
</script>

<style scoped></style>
