<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-bold">法院公告详情</span>
      </div>
  
      <div class="manage-body">
        <van-cell-group>
          <van-cell title="案号" :value="courtAnnouncementsData.caseNo" />
<!--          <van-cell title="案由" value="" />-->
          <div></div>
          <van-cell>
            <template #title>
                <div>上诉人</div>
            </template>
            <template #label>
                <div>{{ courtAnnouncementsData.prosecutorList }}</div>
<!--                <div>2. xxxxxxxxx</div>-->
<!--                <div>3. xxxxxxxxx</div>-->
            </template>
          </van-cell>
          <van-cell title="公告类型" :value="courtAnnouncementsData.category" />
          <van-cell title="当事人" :label="courtAnnouncementsData.party" />
          <van-cell title="刊登版面" :value="courtAnnouncementsData.publishPage" />
          <van-cell title="刊登日期" :value="courtAnnouncementsData.publishDate" />
          <van-cell title="公告内容" :label="courtAnnouncementsData.content" />
        </van-cell-group>
      </div>
    </div>

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

  
  export default {
    name: "CourtAnnouncementsDetail",

    data() {
      return {
        courtAnnouncementsData: {},
      }
    },
    components: {
      VanButton: Button,
      VanRow: Row,
      VanCol: Col,
      VanIcon: Icon,
      VanField: Field,
    },
    created() {
      this.courtAnnouncementsData = JSON.parse(sessionStorage.getItem('courtAnnouncementsData'))
    },
    methods: {
      returnClick() {
        sessionStorage.removeItem('courtAnnouncementsData')
        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: 'CourtAnnouncements'})
        }
      },

    },
  }
  </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;
  }
  /deep/ .van-cell__label {
    font-size: 13px !important;
  }
  </style>../../service/api/index