<template>
  <div class="PersonafFollow">
    <div class="center">{{title}}</div>
    <div class="answer">
      <div class="content">
        <img v-if="img == ''?false : true " class="img" :src="'http://lawpro.earnest.pro' + img" alt srcset />
        <p>{{text}}</p>
      </div>
      <div class="operation">
        <div>
          <img src="../assets/share.png" alt srcset />
          分享
        </div>
        <div>
          <img src="../assets/pl.png" alt srcset />
          {{num}}回答
        </div>
        <div v-show="false" class="more" @click="show = !show">
          <div></div>
          <div></div>
          <div></div>
          <div class="eject" v-show="show">
            <p>举报</p>
            <p>没有帮助</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<style lang="scss" scoped>
.PersonafFollow {
  //   padding: 0px 0 39px 0;
  //   border-bottom: 1px solid #dfdfdf;
  box-shadow: 0px 2px 2px 0px rgba(237, 237, 237, 0.4);
  width: 690px;
  padding: 53px 30px 40px 30px;
  background-color: #fff;
  margin-bottom: 20px;
  .title {
    display: flex;
    justify-content: space-between;
    font-size: 26px;
    color: #95998f;
    margin-bottom: 28px;
  }
  .center {
    font-size: 30px;
    color: #000;
    line-height: 46px;
  }
  .answer {
    .user {
      display: flex;
      align-items: center;
      margin-top: 40px;
      > img {
        width: 58px;
        height: 58px;
        border-radius: 4px;
      }
      > div {
        display: flex;
        flex-direction: column;
        > p {
          font-size: 24px;
          color: #000;
        }
        > p:last-child {
          margin-top: 10px;
          font-size: 24px;
          color: #999;
        }
      }
    }
    .agree {
      margin-top: 29px;
      font-size: 26px;
      color: #95998f;
    }
    .content {
      .img {
        width: 690px;
        height: 374px;
        background-color: #000;
        display: block;
        margin-top: 39px;
        margin-bottom: 32px;
      }
      > p {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-height: 40px;
        font-size: 26px;
      }
    }
    .operation {
      display: flex;
      margin-top: 30px;
      > div {
        margin-right: 60px;
        font-size: 22px;
        color: #95998f;
        > img {
          width: 17px;
          height: 17px;
          margin-right: 11px;
        }
      }
      .more {
        display: flex;
        width: 33px;
        height: 22px;
        justify-content: space-between;
        align-items: center;
        position: relative;
        > div {
          width: 7px;
          height: 7px;
          border-radius: 50%;
          background-color: #95998f;
        }
        > div:last-child {
          border-radius: 4px;
          border: 2px solid rgba(223, 223, 223, 1);
          width: 130px;
          height: 101px;
          position: absolute;
          top: 55px;
          background-color: #FFFFFF;
          left: -50px;
          display: flex;
          flex-direction: column;
          justify-content: space-around;
          padding-left: 20px;
    
          box-sizing: border-box;
          >p{
            font-size: 22px;
            color: #95998F;

          }
          &::after {
            position: absolute;
            top: -10px;
            left: 58px;
            content: "";
            width: 0;
            height: 0;
            border-right: 7px solid transparent;
            border-bottom: 10px solid #FFFFFF;
            border-left: 7px solid transparent;
          }
          &::before {
            position: absolute;
            top: -12px;
            left: 55px;
            content: "";
            width: 0;
            height: 0;
            border-right: 10px solid transparent;
            border-bottom: 11px solid rgba(223, 223, 223, 1);
            border-left: 10px solid transparent;
          }
        }
      }
    }
  }
}
</style>
<script>
export default {
  name: "PersonafFollow",
  data() {
    return {
      show:false
    };
  },
  props:["title",'id','img','text','num']
};
</script>