<template>
  <div>
    <h1 class="tc m20" style="font-size: 2rem; color: #000000;">
      {{postInfo.title}}
    </h1>
    <div v-if="postInfo.postType=='交流互动'">
      <div class="rsx-bg rsx-bg-pc mt20">
        <p class="ldxx-tit">
          <img src="../../../static/images/ask-icon.png" alt="">
          <span class="barrier-free-text">来信详情</span>
        </p>
        <table class="xxdet_table xxdet_table1">
          <tbody>
            <tr>
              <td class="info-t b-free-read-leaf">信件标题：</td>
              <td colspan="3" ms-text="info.title">{{postInfo.title}}</td>
            </tr>
            <tr>
              <td class="info-t b-free-read-leaf">姓  名：</td>
              <td>{{postInfo.author}}</td>
              <td class="info-t b-free-read-leaf">受理单位：</td>
              <td class="b-free-read-leaf">福建鸿锵教育科技有限公司</td>
            </tr>
            <tr>
              <td class="info-t b-free-read-leaf">信件类型：</td>
              <td ms-text="info.chnlName">低压电工作业</td>
              <td class="info-t b-free-read-leaf" tabindex="0" barrier-free-leaf-idx="54">来信时间：</td>
              <td ms-text="info.postTime">{{postInfo.createTime}}</td>
            </tr>
            <tr>
              <td class="info-t b-free-read-leaf">信件内容：</td>
              <td colspan="3" ms-text="info.content">
                <span v-html="postInfo.subTitle"></span>
              </td>
            </tr>
          </tbody>
        </table>
      </div>

      <div class="rsx-bg rsx-bg-pc mt20">
        <p class="ldxx-tit">
          <img src="../../../static/images/reply-icon.png" alt="" barrier-free-idx="123">
          <span class="barrier-free-text">回复详情</span>
        </p>
        <p v-if="!postInfo.content" class="tc mt30 fs32 red-r"> 等待回复中 </p>
        <table v-else class="xxdet_table xxdet_table1">
          <tbody>
            <tr>
              <td class="info-t b-free-read-leaf">回复单位：</td>
              <td class="b-free-read-leaf">福建鸿锵教育科技有限公司</td>
              <td class="info-t b-free-read-leaf">回复时间：</td>
              <td>{{postInfo.replyTime}}</td>
            </tr>
            <tr barrier-free-idx="131">
              <td class="info-t b-free-read-leaf" barrier-free-idx="132" tabindex="0" barrier-free-leaf-idx="59">回复内容：</td>
              <td colspan="3">
                <span v-html="postInfo.content"></span>
              </td>
            </tr>

          </tbody>
        </table>
      </div>

    </div>
    <div v-else>
      <h2 class="tc mt20" style="font-size: 30px;">
        发布时间：{{postInfo.publishTime}}
        <span class="ml30 ng-binding">来源：{{postInfo.author}}</span>
        <span class="ml30 ng-binding">阅读数：{{postInfo.viewCount}}</span>
      </h2>
      <span v-html="postInfo.content" class="mt30 tl" style="margin-top: 1rem; margin-left: 1rem; white-space: pre-line;line-height: 2rem;"></span>
    </div>
  </div>
</template>

<script>
  export default {
    props: ['postInfo']
  }
</script>

<style>
  .post-item .el-form-item__label{
    color: #000000;
  }
  .ldxx-tit {
      padding-bottom: 14px;
      font-size: 20px;
      font-weight: bold;
      border-bottom: 3px #1658a0 solid;
  }
  .ldxx-tit img {
      margin-right: 14px;
  }
  .xl-main .myzj_xl_tit {
      margin-bottom: 10px;
  }
  .xxdet_table tbody tr td {
      border-bottom: 1px #e8e8e8 solid;
      padding: 18px 6px 18px 10px;
      border-left: 1px #e8e8e8 solid;
      line-height: 30px;
  }
  .xxdet_table tbody tr td.info-t {
      width: 12%;
      background: #f8f8f8;
      text-align: right;
  }
</style>
