|
@@ -15,7 +15,7 @@
|
|
|
|
|
|
<div class="vhotspotcon">
|
|
|
<div class="vtitle" v-html="hotspot.title"></div>
|
|
|
- <div class="hotspotcon">
|
|
|
+ <div class="hotspotcon" :class="{fullcon:!hotspot.content}">
|
|
|
<div class="img-con">
|
|
|
<img
|
|
|
class="aa"
|
|
@@ -146,10 +146,9 @@ export default {
|
|
|
mounted(){
|
|
|
const elem = document.getElementById('map')
|
|
|
this.panzoom = Panzoom(elem, {
|
|
|
- maxScale: 10
|
|
|
+ maxScale: 10,
|
|
|
+ startScale: !this.hotspot.content?0.8:1
|
|
|
})
|
|
|
- this.panzoom.pan(10, 10)
|
|
|
- this.panzoom.zoom(1, { animate: true })
|
|
|
elem.addEventListener('wheel', this.panzoom.zoomWithWheel)
|
|
|
}
|
|
|
};
|
|
@@ -179,7 +178,7 @@ export default {
|
|
|
left: 0;
|
|
|
top: 0;
|
|
|
z-index: -1;
|
|
|
- clip-path: polygon(1% 11%, 10% 2%, 99% 2%, 99% 89%, 92% 99%, 1% 99%);
|
|
|
+ clip-path: polygon(1% 11%, 10% 2%, 99% 2%, 99% 89%, 91% 98%, 1% 98%);
|
|
|
}
|
|
|
.close {
|
|
|
position: absolute;
|
|
@@ -230,9 +229,10 @@ export default {
|
|
|
max-height: 60vh;
|
|
|
}
|
|
|
}
|
|
|
- @h:72vh;
|
|
|
+ @h:100%;
|
|
|
.bigImg{
|
|
|
max-height: @h;
|
|
|
+ margin: 0;
|
|
|
>img{
|
|
|
max-height: @h;
|
|
|
}
|
|
@@ -261,6 +261,19 @@ export default {
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
}
|
|
|
+ .fullcon{
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ clip-path: polygon(1% 12%, 3.8% 8%, 42% 8%, 45.2% 2.7%, 99% 2.7%, 99% 89%, 92% 98%, 1% 98%);
|
|
|
+ .img-con {
|
|
|
+ height: 100%;
|
|
|
+ .imgmain {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -297,7 +310,7 @@ export default {
|
|
|
display: inline-block;
|
|
|
font-size: 16px;
|
|
|
margin: 0px auto;
|
|
|
- width: 50vw;
|
|
|
+ width: 60vw;
|
|
|
}
|
|
|
.mbhcon {
|
|
|
position: absolute;
|