<template>
  <div class="m-convention">
    <div class="img-con" :style="{background:`url('${content.mBackground}') top center no-repeat`,backgroundSize: '100% auto'}">
      <div class="img-l">
        <img :src="content.mL" alt="">
      </div>
      <div class="img-txt">
        <div>{{content.slogan1}}</div>
        <div>{{content.slogan2}}</div>
      </div>
      <div class="img-r">
        <img :src="content.mR" alt="">
      </div>
    </div>
    <div class="m-detail">
      <div class="mi-title">{{content.mTitle}}</div>
      <div class="mi-detail">{{content.detail}}</div>
      <div @click="clickHandle(content.video)" class="btn"><span>Review</span></div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['content'],
  methods: {
    clickHandle (item) {
      this.$emit('openVideo', item)
    }
  }
}
</script>

<style scoped>
  .m-convention{
    margin: 20% auto;
  }
  .img-con{
    width: 100%;
    position: relative;
    height: 200px;
  }
  .img-con .img-txt{
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  .img-con .img-l{
    position: absolute;
    bottom: -7%;
    left: 0%;
    width: 45%;
    height: 188px;
  }
  .img-con .img-l img{
    width: 100%;
  }
  .img-con .img-r{
    position: absolute;
    top: -7%;
    right: 0%;
    width: 45%;
    height: 188px;
  }
  .img-con .img-r img{
    width: 100%;
  }
  .m-detail{
    text-align: center;
    margin-top: 40px;
  }
  .m-detail .mi-title{
    font-size: 18px;
    font-weight: bold;
  }
  .m-detail .mi-detail{
    width: 90%;
    margin: 20px auto 30px;
    text-align: left;
    line-height: 1.5;
    color: #656565;
    font-size: 14px;
  }
  .m-detail .btn{
    color: #fff;
  }

</style>
