12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <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"></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: center;
- line-height: 1.5;
- max-height: 250px;
- overflow-y: auto;
- font-size: 16px;
- padding: 0 50px;
- }
- }
- .close{
- position: absolute;
- top: 20px;
- right: 40px;
- width: 20px;
- height: 20px;
- cursor: pointer;
- z-index: 9999999;
- }
- </style>
|