<template>
  <div class="images">
    <div class="img-con">
        <iframe :src="g_dealUrl(hotspot.iframe[active]||hotspot.model[active])" frameborder="0"></iframe>
    </div>
    <div class="title" v-html="hotspot.title" v-show="0"></div>
    <div class="desc" v-if="hotspot.content" v-html="hotspot.content"></div>
  </div>
</template>

<script>
export default {
  props:['hotspot'],
  data(){
    return {
      active:0
    }
  },
  mounted(){
    console.log(this.hotspot);
  },
  methods:{
  }
}
</script>
<style lang="less" scoped>
.noshow{
  opacity: 0!important;;
  pointer-events: none!important;;
}

.images{
  width: 1410px;
  height: 800px;
  text-align: center;
  margin: 0 auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  border-radius: 5px;
  text-align: left;
  .img-con{
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    padding-bottom: 40px;
    height: calc(100% - 130px);
    >iframe{
      width: 100%;
      height: 100%;
    }
  }
  .title {
    font-weight: bold;
    font-size: 30px;
    width: 100%;
    padding: 0 50px;
    text-align: center;
    margin-bottom: 10px;
  }
  .desc{
    margin: 0 auto;
    width: 70%;
    color: #fff;
    text-align: justify;
    line-height: 1.8;
    max-height: 120px;
    overflow-y: auto;
    font-size: 16px;
    padding: 0;
  }
}

 .close{
    position: absolute;
    top: 20px;
    right: 40px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 9999999;
  }
</style>