张延森 3 年前
父节点
当前提交
f3ed96766b
共有 6 个文件被更改,包括 21 次插入1 次删除
  1. 二进制
      src/assets/tmp/1.png
  2. 二进制
      src/assets/tmp/2.png
  3. 二进制
      src/assets/tmp/3.jpg
  4. 二进制
      src/assets/tmp/4.jpg
  5. 19
    0
      src/pages/index/buildingDetail/components/Banner/index.jsx
  6. 2
    1
      src/pages/index/buildingDetail/index.jsx

二进制
src/assets/tmp/1.png 查看文件


二进制
src/assets/tmp/2.png 查看文件


二进制
src/assets/tmp/3.jpg 查看文件


二进制
src/assets/tmp/4.jpg 查看文件


+ 19
- 0
src/pages/index/buildingDetail/components/Banner/index.jsx 查看文件

@@ -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 查看文件

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