<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>
        <basic-information></basic-information>
        <van-index-anchor index="收入信息">
          <sub-title>收入信息</sub-title>
        </van-index-anchor>
        <income-information></income-information>
        <van-index-anchor index="家庭资产状况">
          <sub-title>家庭资产状况</sub-title>
        </van-index-anchor>
        <family-assetStatus></family-assetStatus>
      </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 BasicInformation from "@/components/customer-information/family-financial-information/BasicInformation.vue";
import BillingInformation from "@/components/customer-information/family-financial-information/BillingInformation.vue";
import FamilyAssetStatus from "@/components/customer-information/family-financial-information/FamilyAssetStatus.vue";
import IncomeInformation from "@/components/customer-information/family-financial-information/IncomeInformation.vue";
import LoanInformation from "@/components/customer-information/family-financial-information/LoanInformation.vue";
/**
 * @Description 家庭财务信息
 * @Author JiangTao
 * @Date 2021-11-10 下午 03:21
 */
@Component({
  name: "DetailsInfo",
  components: { TitleBar, IncomeInformation, BasicInformation, BillingInformation, FamilyAssetStatus, LoanInformation, ApplicationInformation },
})
export default class DetailsInfo extends Vue {
  pageTitle = ""; // 页面标题
  indexList = ["基本信息", "收入信息", "家庭资产状况"];

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

<style scoped></style>
