|
|
@@ -33,7 +33,7 @@
|
|
|
|
|
|
<div class="progress-box">
|
|
|
<div class="info">
|
|
|
- <span>{{ guidePlayIndex + 1 }}</span
|
|
|
+ <span>{{ guidePlayIndex < 0 ? '-' : (guidePlayIndex + 1) }}</span
|
|
|
>of<span>{{ tourList.length }}</span>
|
|
|
</div>
|
|
|
<div class="bar-box"><div :style="`width:${100 / tourList.length}%;left:${(guidePlayIndex * 100) / tourList.length}%;`" class="current-box"></div></div>
|
|
|
@@ -69,6 +69,7 @@ export default {
|
|
|
//监控data中的数据变化
|
|
|
watch: {
|
|
|
guidePlayIndex(v) {
|
|
|
+ if (v < 0) return
|
|
|
this.swiper.slideTo(v)
|
|
|
}
|
|
|
},
|