|
@@ -0,0 +1,19 @@
|
|
1
|
+import React from 'react'
|
|
2
|
+import { Swiper, SwiperItem } from '@tarojs/components'
|
|
3
|
+
|
|
4
|
+import img1 from '@/assets/tmp/1.png'
|
|
5
|
+import img2 from '@/assets/tmp/2.png'
|
|
6
|
+import img3 from '@/assets/tmp/3.jpg'
|
|
7
|
+import img4 from '@/assets/tmp/4.jpg'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+export default (props) => {
|
|
11
|
+ return (
|
|
12
|
+ <Swiper interval={2000} duration={500} style={{ height: '100%' }}>
|
|
13
|
+ <SwiperItem><image src={img1} mode='aspectFill' style={{width: '100%', height: '100%'}} /></SwiperItem>
|
|
14
|
+ <SwiperItem><image src={img2} mode='aspectFill' style={{width: '100%', height: '100%'}} /></SwiperItem>
|
|
15
|
+ <SwiperItem><image src={img3} mode='aspectFill' style={{width: '100%', height: '100%'}} /></SwiperItem>
|
|
16
|
+ <SwiperItem><image src={img4} mode='aspectFill' style={{width: '100%', height: '100%'}} /></SwiperItem>
|
|
17
|
+ </Swiper>
|
|
18
|
+ )
|
|
19
|
+}
|