<template>
  <!-- 区域品牌(绍兴市) -->
  <div class="content_regional_brand">
    <div class="brandMain_box2" v-if="data.tabBarList.length">
      <div
        v-for="(item, index) in data.tabBarList"
        :key="index"
        class="margin10"
      >
        <div class="brand-cover">
          <img :src="item.imageUrl" />
        </div>
        <div class="brand-body">
          <!-- <div class="brand-body-brand">{{ dataResult.title }}</div> -->
          <div class="brand-body-title">{{ item.brandName }}</div>
          <el-scrollbar>
            <div class="brand-body-desc">
              {{ item.describes }}
            </div>
          </el-scrollbar>
        </div>
      </div>
    </div>
    <div v-else class="noDataText">
      暂无数据
    </div>
  </div>
</template>
<script>
export default {
  name: "content_regional_brand",
  props: ["data"],
  mounted() {
    console.log("组件内获取的content", this.data);
  },
};
</script>
<style scoped lang="scss">
.content_regional_brand {
  // width: 100%;
  // height: 100%;
  // line-height: 30px;
  // font-size: 14px;
  // color: #666666;
  .brandMain_box2 {
    height: 100%;
    margin: 35px 0;
    .margin10 {
      margin-bottom: 20px;
    }

    .brand-cover {
      float: left;
      width: 272px;
      height: 100%;
      font-size: 0;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .brand-body {
      padding-top: 30px;
      margin-left: 319px;

      .brand-body-brand {
        position: relative;
        height: 24px;
        font-size: 16px;
        color: #333333;
        line-height: 24px;
        letter-spacing: 3px;
        padding-bottom: 8px;
        margin-bottom: 29px;

        &::after {
          content: " ";
          position: absolute;
          bottom: 0;
          left: 0;
          width: 56px;
          height: 4px;
          background-color: #16a952;
        }
      }

      .brand-body-title {
        font-size: 31px;
        font-weight: 600;
        color: #333333;
        line-height: 40px;
        margin-bottom: 20px;
      }

      .brand-body-desc {
        font-size: 16px;
        color: #666666;
        line-height: 26px;
        height: 190px;
        word-break: break-all;
      }
    }
  }
}
</style>
