<template>
  <div class="gzh-box">
    <div class="gzh-left">
      <div class="avatar">
        <img v-if="config.logo" :src="config.logo" width="50" height="50" />
        <img
          v-else
          src="@/assets/images/decoration/h5/none-img.png"
          width="50"
          height="50"
        />
      </div>
      <div class="info">
        <div class="name">
          {{ config.name }}
        </div>
        <div class="desc">
          {{ config.desc }}
        </div>
      </div>
    </div>
    <div class="gzh-right">
      <div class="btn">关注</div>
    </div>
  </div>
</template>
<script>
export default {
  props: ["config"],
  computed: {},
};
</script>
<style lang="less" scoped>
.gzh-box {
  width: 100%;
  height: auto;
  float: left;
  box-sizing: border-box;
  padding: 15px;
  background-color: white;
  display: flex;
  flex-direction: row;
  .gzh-left {
    flex: 1;
    display: flex;
    flex-direction: row;
    .avatar {
      width: 50px;
      height: 50px;
      margin-right: 10px;
      border-radius: 50%;
      overflow: hidden;
      img {
        border-radius: 50%;
      }
    }
    .info {
      flex: 1;
      display: flex;
      flex-direction: column;
      .name {
        width: 100%;
        height: 20px;
        font-size: 15px;
        font-weight: 500;
        color: #171923;
        line-height: 20px;
        margin-top: 5px;
      }
      .desc {
        width: 100%;
        height: 12px;
        font-size: 12px;
        font-weight: 400;
        color: #999999;
        line-height: 12px;
        margin-top: 8px;
      }
    }
  }
  .gzh-right {
    width: 58px;
    display: flex;
    align-items: center;
    .btn {
      width: 58px;
      height: 24px;
      background: #3ca7fa;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 400;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
}
</style>
