|
@@ -13,9 +13,7 @@
|
|
|
v-for="(item, i) in mapData"
|
|
|
:key="i"
|
|
|
>
|
|
|
- <div :class="{'slActive':guideActive==item.toIdx,hoverCls: item.toIdx===hoverIdx}">
|
|
|
- <!-- <div :class="{'slActive':item.activemin<=guideActive&& item.activemax>=guideActive,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>
|
|
@@ -163,7 +161,6 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
window.addEventListener("loadfinish", () => {
|
|
|
this.guide = window.player.model.images;
|
|
|
- console.log(this.guide);
|
|
|
let fixArr = [{
|
|
|
idx:0,
|
|
|
activemin:0,
|
|
@@ -202,7 +199,7 @@ export default {
|
|
|
}]
|
|
|
this.guide.list.forEach((item,i)=>{
|
|
|
let tmp = fixArr.find(sub=>sub.idx ==i)
|
|
|
- if (true) {
|
|
|
+ if (tmp) {
|
|
|
this.mapData.push({
|
|
|
...item,
|
|
|
...tmp,
|
|
@@ -214,7 +211,6 @@ export default {
|
|
|
window.player.on('onplayStatus', (data)=>{
|
|
|
this.guideActive = data.destinationItem && data.destinationItem[0]
|
|
|
this.swiper && this.swiper.slideTo(this.guideActive)
|
|
|
-
|
|
|
//if (!data.tourIsPlaying) {
|
|
|
// this.guideActive=''
|
|
|
//}
|