<template>
  <div id="detailinfo">
    <el-row>
      <el-col :span="24" class="info">
        <el-col :span="24" class="top">
          <p class="textOver">{{ detailInfo.product_name }}</p>
        </el-col>
        <el-col :span="24" class="message">
          <p>
            <span>营销人名称:</span>
            <span>{{ detailInfo.market_username || '暂无' }}</span>
          </p>
          <p>
            <span>购买人名称:</span>
            <span>{{ detailInfo.username || '暂无' }}</span>
          </p>
          <p>
            <span>状态:</span>
            <span>{{ detailInfo.status === '0' ? '洽谈' : detailInfo.status === '1' ? '意向' : detailInfo.status === '2' ? '交易' : '暂无' }}</span>
          </p>
          <div class="introduction">
            <p>说明:</p>
            <p>{{ detailInfo.description || '暂无' }}</p>
          </div>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'detailinfo',
  props: {
    detailInfo: null,
  },
  components: {},
  data: function() {
    return {};
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
    pageTitle() {
      return `${this.$route.meta.title}`;
    },
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
};
</script>

<style lang="less" scoped>
.info {
  .top {
    background: #fff;
    min-height: 40px;
    padding: 0 15px;
    margin: 0 0 10px 0;
    .carousel {
      height: 200px !important;
      padding: 10px 0;
    }
    .el-image {
      width: 100%;
      height: 200px;
    }

    p {
      font-size: 18px;
      // color: #7996b1;
      padding: 10px 0 10px 0;
    }
  }
  .message {
    background: #fff;
    padding: 0 15px;
    min-height: 50px;
    p {
      min-height: 50px;
      line-height: 50px;
      border-bottom: 1px solid #ccc;
    }
    span:first-child {
      display: inline-block;
      width: 98px;
      color: #ccc;
    }
    span:last-child {
      color: #000;
    }
    div {
      p {
        border-bottom: none;
      }
    }
  }
}
/deep/.el-carousel__container {
  height: 200px !important;
}
</style>
