张延森 3 anni fa
parent
commit
f3ed96766b

BIN
src/assets/tmp/1.png Vedi File


BIN
src/assets/tmp/2.png Vedi File


BIN
src/assets/tmp/3.jpg Vedi File


BIN
src/assets/tmp/4.jpg Vedi File


+ 19
- 0
src/pages/index/buildingDetail/components/Banner/index.jsx Vedi File

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
+}

+ 2
- 1
src/pages/index/buildingDetail/index.jsx Vedi File

17
 import LivingActivity from './components/LivingActivity/index'
17
 import LivingActivity from './components/LivingActivity/index'
18
 import News from './components/News/index'
18
 import News from './components/News/index'
19
 import Pictures from './components/Pictures/index'
19
 import Pictures from './components/Pictures/index'
20
+import Banner from './components/Banner'
20
 
21
 
21
 export default withLayout((props) => {
22
 export default withLayout((props) => {
22
   
23
   
69
               <view className='BannerContainer'>
70
               <view className='BannerContainer'>
70
                 <view>
71
                 <view>
71
                   <view>
72
                   <view>
72
-
73
+                    <Banner />
73
                   </view>
74
                   </view>
74
                 </view>
75
                 </view>
75
               </view>
76
               </view>