张延森 3 jaren geleden
bovenliggende
commit
f3ed96766b

BIN
src/assets/tmp/1.png Bestand weergeven


BIN
src/assets/tmp/2.png Bestand weergeven


BIN
src/assets/tmp/3.jpg Bestand weergeven


BIN
src/assets/tmp/4.jpg Bestand weergeven


+ 19
- 0
src/pages/index/buildingDetail/components/Banner/index.jsx Bestand weergeven

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

+ 2
- 1
src/pages/index/buildingDetail/index.jsx Bestand weergeven

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