Browse Source

轮播设置

devlop
杨阁辉 4 years ago
parent
commit
bc3afe4d5b
1 changed files with 8 additions and 2 deletions
  1. 10
      pages/start-page/index.vue

10
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')
}

Loading…
Cancel
Save