4 changed files with 79 additions and 1 deletions
@ -0,0 +1,61 @@ |
|||||
|
<template> |
||||
|
<view class="wrap"> |
||||
|
<u-swiper |
||||
|
@change="changePic" |
||||
|
height="100%" |
||||
|
:autoplay="false" |
||||
|
:list="list" |
||||
|
img-mode="widthFix" |
||||
|
class="w-full h-full" |
||||
|
:circular="false" |
||||
|
></u-swiper> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
list: [ |
||||
|
{ |
||||
|
image: 'https://www.tall.wiki/staticrec/guide/1.png', |
||||
|
title: '1', |
||||
|
}, |
||||
|
{ |
||||
|
image: 'https://www.tall.wiki/staticrec/guide/2.png', |
||||
|
title: '2', |
||||
|
}, |
||||
|
{ |
||||
|
image: 'https://www.tall.wiki/staticrec/guide/3.png', |
||||
|
title: '3', |
||||
|
}, |
||||
|
{ |
||||
|
image: 'https://www.tall.wiki/staticrec/guide/4.png', |
||||
|
title: '4', |
||||
|
}, |
||||
|
{ |
||||
|
image: 'https://www.tall.wiki/staticrec/guide/5.png', |
||||
|
title: '5', |
||||
|
}, |
||||
|
], |
||||
|
}; |
||||
|
}, |
||||
|
methods: { |
||||
|
changePic(index) { |
||||
|
if (index === this.list.length - 1) { |
||||
|
setTimeout(() => { |
||||
|
this.$emit('quitGuide'); |
||||
|
}, 1500); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.wrap { |
||||
|
position: absolute; |
||||
|
top: 0; |
||||
|
z-index: 999999; |
||||
|
} |
||||
|
</style> |
Loading…
Reference in new issue