<template>
    <div id="category">
      <!--头部-->
      <!-- <Header/> -->
      <div class="header-title">
        <span class="header-title-return-back" @click="returnClick"><van-icon name="arrow-left" /></span>
        <span class="header-title-name">失信信息详情</span>
      </div>
  
      <div class="manage-body">
        <van-cell-group>
          <van-cell title="案号" :value="PromiseInfoData.anNo" />
          <van-cell title="失信人信息" :value="PromiseInfoData.name" />
          <van-cell title="执行依据文号" :value="PromiseInfoData.executeNo" />
<!--          <van-cell title="总执行金额" :value="PromiseInfoData.anNo" />-->
          <van-cell title="立案时间" :value="PromiseInfoData.lianDate" />
          <van-cell title="执行法院" :value="PromiseInfoData.executeGov" />
          <van-cell title="发布时间" :value="PromiseInfoData.publicDate" />
          <van-cell title="做出执行依据单位" :value="PromiseInfoData.executeUnite" />
          <van-cell title="被执行人履行情况" :value="PromiseInfoData.executeStatus" />
          <van-cell title="生效法律文书确定的义务/执行标的" :label="PromiseInfoData.yiwu" />
        </van-cell-group>
      </div>
    </div>

  </template>
  
  <script>
  import { Button, Col, Row, Icon, Field } from 'vant';


  
  export default {
    name: "PromiseInfoDetail",

    data() {
      return {
        PromiseInfoData: {},
      }
    },
    components: {
      VanButton: Button,
      VanRow: Row,
      VanCol: Col,
      VanIcon: Icon,
      VanField: Field,
    },
    created() {
      this.PromiseInfoData = JSON.parse(sessionStorage.getItem('PromiseInfoData'))
    },
    methods: {
      returnClick() {
        sessionStorage.removeItem('PromiseInfoData')
        if (sessionStorage.getItem('jumpType')) {
          if (sessionStorage.getItem('jumpType') == 'category') {
            this.$router.push({path: '/category'})
          } else {
            this.$router.push({path: '/MonitorStation'})
          }
        } else {
          this.$router.push({path: 'PromiseInfo'})
        }
      },

    },
  }
  </script>
  
  <style lang="less" scoped>
  
  .header-title {
    height: 46px;
    width: 100%;
    background-color: #fff;
    text-align: center;
  }
  .header-title-name {
    font-weight: bold;
    line-height: 46px;
    align-items: center;
    justify-content: center;
    display: inline-flex;
  }
  .header-title-return {
    position: absolute;
    top: 13px;
    left: 20px;
    font-size: 15px;
  }
  .manage-body {
    margin-top: 10px;
    background-color: #fff;
    padding: 20px 10px 0px 10px;
  }
  /deep/ .van-nav-bar__text {
    color: gray !important;
    font-weight: bold;
  }
  .icon-mg {
    margin-left: 3px;
  }
  /deep/ .van-card__thumb {
    width: 60px;
  }
  /deep/ .van-cell__value {
    bottom: 5px;
  }
  /deep/ .van-cell {
    padding-right: 5px !important;
  }
  </style>../../service/api/index