diff --git a/pages/start-page/index.vue b/pages/start-page/index.vue index d4f8f04..106ee08 100644 --- a/pages/start-page/index.vue +++ b/pages/start-page/index.vue @@ -8,6 +8,7 @@ class="swiper" :current="current" @change="currentChange" + @transition="transition" :style="pageHight" :indicator-dots="indicatorDots" :autoplay="autoplay" @@ -50,8 +51,8 @@ export default { pageHight: 0, background: ['color1', 'color2', 'color3'], indicatorDots: false, - autoplay: false, - interval: 2000, + autoplay: true, + interval: 1500, duration: 500, pageText: [ { @@ -85,6 +86,11 @@ export default { currentChange(item) { this.current = item.detail.current }, + transition(item){ + if(this.current === this.pageText.length - 1){ + this.autoplay = false + } + }, jumpLogin(){ go2('login') }