From bc3afe4d5b288105ccab24992fecb9a82843a769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=98=81=E8=BE=89?= Date: Mon, 24 Jan 2022 17:14:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E6=92=AD=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/start-page/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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') }