<template>
    <popup v-if="show">
      <i @click="$emit('close')" class="iconfont iconbs_close closeicon"></i>
      <div class="ui-message ui-message-confirm">
        <div class="ui-message-main">
          <template v-if="item.hotspotType=='textarea'">
            <div class="v-textarea">
              <span>{{item.textarea}}</span>
            </div>
          </template>
          <video :poster="item.video.icon" v-else controls autoplay :src="item.video.ossPath"></video>
        </div>
      </div>
    </popup>
</template>

<script>
import Popup from "@/components/shared/popup";

export default {
  props:['show','item'],
  components:{
    Popup
  },
  data(){
    let typeStr={
      image:'icon',
      pano:'previewIcon'
      // image:'icon',
      // image:'icon',
    }
    return {
      typeStr
    }
  },
  methods:{
    
  }
}
</script>

<style lang="less" scoped>
.ui-message{
  width: 100%;
  background: none;
}
.closeicon{
  position: fixed;
  color: rgba(255, 255, 255, 0.88);
  top: 28px;
  font-size: 14px;
  right: 28px;
}
.ui-message-confirm{
  border-radius: 0;
  .icon_close{
    color: #909090;
  }
  .ui-message-main{
    width: 100%;
    font-size: 0;
    position: relative;
    >img,>video{
      width: 100%;
    }
    .v-textarea{
      width: 100%;
      max-height: 540px;
      overflow-y: auto;
      padding: 30px 50px;
      text-align: left;
      >span{
        font-size: 14px;
        color: #202020;
      }
    }
    
  }
  .ui-message-footer{
    width: 100%;
    .btn{
      width: 80%;
      display: flex;
      justify-content: center;
      margin: 0 auto;
      .ui-button{
        max-width: 104px;
      }
    }

  }
}
</style>

<style lang="less" scoped>
@import './preview.less';
</style>