<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">
        <div class="fs-15 fw-bold mg-lt-16 pd-bt-10">{{ JudgmentsDetailData.caseName }}</div>
        <van-cell-group>
<!--          <van-cell title="来源：中国裁判文书网" value="发布日期：2024-03-24" />-->
          <div style="font-size: 14px;margin: 20px;padding: 10px;background-color: #F7F8FB;">
          <div class="pd-bt-10">案号：{{ JudgmentsDetailData.caseNo }}</div>
          <div class="pd-bt-10">案件金额：{{ JudgmentsDetailData.amount }}</div>
          <div class="pd-bt-10">案由：{{ JudgmentsDetailData.caseReason }}</div>
          <div class="pd-bt-10">法院：{{ JudgmentsDetailData.court }}</div>
          <div class="pd-bt-10">裁判日期：{{ JudgmentsDetailData.judgeDate }}</div>
          <div class="pd-bt-10">原告：{{ JudgmentsDetailData.prosecutor }}</div>
          <div class="pd-bt-10">被告：{{ JudgmentsDetailData.defendant }}</div>
          <div>原告的诉讼日期：{{ JudgmentsDetailData.caseSubmitDate }}</div>
          </div>
        </van-cell-group>
<!--        <div class="fs-15 fw-bold mg-lt-16">文书正文</div>-->
<!--        <van-cell-group>-->
<!--          <van-cell title="民事裁判书" value="" />-->
<!--          <van-cell title="法院认为" label="正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容" />-->
<!--          <van-cell title="裁判结果" label="正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容正文内容" />-->
<!--          <van-cell title="裁判结果日期" label="2024-04-24" />-->
<!--        </van-cell-group>-->
      </div>
    </div>

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


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

    },
  }
  </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 5px 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;
  }
  </style>../../service/api/index