|
@@ -13,7 +13,9 @@
|
|
|
v-for="(item, i) in mapData"
|
|
|
:key="i"
|
|
|
>
|
|
|
- <div :class="{'slActive':item.activemin<=guideActive&& item.activemax>=guideActive,hoverCls: item.toIdx===hoverIdx}">
|
|
|
+ <div :class="{'slActive':guideActive==item.toIdx,hoverCls: item.toIdx===hoverIdx}">
|
|
|
+ <!-- <div :class="{'slActive':item.activemin<=guideActive&& item.activemax>=guideActive,hoverCls: item.toIdx===hoverIdx}"> -->
|
|
|
+
|
|
|
<img @click="gotoLight(item)" @mouseleave="hoverOutHandle(item,i)" @mouseenter="hoverHandle(item,i)" :src="(item.locations?item.locations[0].thumbnail_signed_src : item.thumbnail_signed_src)" :alt="item.name" />
|
|
|
<span :title="item.name">{{item.name}}</span>
|
|
|
</div>
|
|
@@ -146,7 +148,6 @@ export default {
|
|
|
},
|
|
|
hoverHandle(item,i){
|
|
|
this.hoverIdx = item.toIdx;
|
|
|
- console.log(item);
|
|
|
player.model.emit('tourThumbImgHover',item.toIdx)
|
|
|
},
|
|
|
hoverOutHandle(item,i){
|
|
@@ -201,7 +202,7 @@ export default {
|
|
|
}]
|
|
|
this.guide.list.forEach((item,i)=>{
|
|
|
let tmp = fixArr.find(sub=>sub.idx ==i)
|
|
|
- if (tmp) {
|
|
|
+ if (true) {
|
|
|
this.mapData.push({
|
|
|
...item,
|
|
|
...tmp,
|
|
@@ -209,11 +210,11 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- console.log(this.mapData);
|
|
|
//监听导览状态
|
|
|
window.player.on('onplayStatus', (data)=>{
|
|
|
this.guideActive = data.destinationItem && data.destinationItem[0]
|
|
|
this.swiper && this.swiper.slideTo(this.guideActive)
|
|
|
+
|
|
|
//if (!data.tourIsPlaying) {
|
|
|
// this.guideActive=''
|
|
|
//}
|