Преглед изворни кода

一开始就展示变色热点

任一存 пре 3 година
родитељ
комит
3ac1bfea83
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/views/HomeView.vue

+ 2 - 2
src/views/HomeView.vue

@@ -38,7 +38,7 @@
         @dragstart.prevent
       >
       <HotSpot
-        v-if="[3].includes(tourState)"
+        v-if="[3].includes(tourState) || ([0].includes(tourState) && maskOpacity === 0)"
         class="hot-spot"
         @click="onClickPeopleFarHotSpot"
       />
@@ -79,7 +79,7 @@
     >
 
     <div
-      v-if="[0, 1, 2].includes(tourState)"
+      v-if="[0, 1, 2].includes(tourState) && maskOpacity !== 0"
       class="fade-mask"
       :style="{
         opacity: maskOpacity,