tremble пре 4 година
родитељ
комит
b96ec26b4a
2 измењених фајлова са 4 додато и 8 уклоњено
  1. 2 2
      web/src/pages/Home.vue
  2. 2 6
      web/src/views/gui/newguide.vue

+ 2 - 2
web/src/pages/Home.vue

@@ -244,10 +244,10 @@ export default {
         isShow:false,
         isShowFile:false,
         isFade:true,
-        showWelcome:false,
+        showWelcome:true,
         showLoingVideo: false,
         fileCode:'',
-        loading:false
+        loading:true
       }
   }
 }

+ 2 - 6
web/src/views/gui/newguide.vue

@@ -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=''
             //}