- {{ active +' / '+ pageData.length }}
-
+ {{ active +' / '+ pageData.length }}
+
@@ -46,11 +39,11 @@ export default {
},
data() {
return {
- active: 2,
+ active: 1,
isLoading: false,
fullscreen: false,
height: '',
- headerTitle: '祁阳图书馆',
+ headerTitle: '祁阳陶铸图书馆智慧大屏馆情数据总览',
pageData: [
{
id: 1, title: 'page1', delayed: 10
@@ -96,6 +89,7 @@ export default {
},
methods: {
autoPagination() {
+ clearInterval(this.timer2)
this.timer2 = setInterval(() => {
setTimeout(() => {
if (this.active >= this.pageData.length) {
@@ -125,59 +119,6 @@ export default {
this.height = `${(this.$refs.sectionRef.offsetHeight - 30) / 3}px`
}, 100)
}
- // init() {
- // const _self = this
- // this.swiperOption = {
- // loop: false,
- // initialSlide: _self.pageIndex,
- // observer: true, // 修改swiper自己或子元素时,自动初始化swiper
- // observeParents: true, // 修改swiper的父元素时,自动初始化swiper
- // notNextTick: false,
- // speed: 1500,
- // autoplay: {
- // delay: 10000, // 自动切换的时间间隔,单位ms
- // stopOnLastSlide: false, // 当切换到最后一个slide时停止自动切换
- // disableOnInteraction: false // 用户操作swiper之后,是否禁止autoplay
- // // reverseDirection: true // 开启反向自动轮播
- // // waitForTransition: true, //等待过渡完毕。自动切换会在slide过渡完毕后才开始计时
- // },
- // direction: 'vertical',
- // // 显示分页
- // pagination: {
- // el: '.swiper-pagination-home',
- // type: 'fraction'
- // },
- // on: {
- // slideChangeTransitionEnd() {
- // console.log(' this.activeIndex-index', this.realIndex)
- // _self.pageIndex = this.realIndex
- // _self.addAnimationClass(this.realIndex)
- // }
- // }
- // }
- // },
- // addAnimationClass(realIndex) {
- // this.$nextTick(() => {
- // const swiper = this.$refs.mySwiperHome.swiper
- // if (swiper) {
- // const slides = swiper.slides
- // const nextSlide = slides.eq(2)
- // if (realIndex === 1) {
- // // nextSlide.find('.place-point').children().addClass('bouncePoint')
- // this.$nextTick(() => {
- // console.log(this.$refs.mapRefs.initChart)
- // this.$refs.mapRefs.isPage2 = true
- // this.$refs.mapRefs.count = 0
- // this.$refs.mapRefs.initChart()
- // this.$refs.mapRefs.updateChart()
- // })
- // } else {
- // this.$refs.mapRefs.isPage2 = false
- // nextSlide.find('.place-point').children().removeClass('bouncePoint')
- // }
- // }
- // })
- // }
}
}
diff --git a/src/views/map/index.vue b/src/views/map/index.vue
index edd301b..4bd08dc 100644
--- a/src/views/map/index.vue
+++ b/src/views/map/index.vue
@@ -33,7 +33,7 @@