Ver código fonte

静态页面

1002884655 3 anos atrás
pai
commit
ffb4bfa205

+ 1
- 1
src/pages/index/buildingDetail/components/BuildingDetailBanner/index.jsx Ver arquivo

@@ -67,7 +67,7 @@ export default function BuildingDetailBanner (props) {
67 67
       {/* 切换 */}
68 68
       {
69 69
         !!NavList.length &&
70
-        <view className='CutPoint'>
70
+        <view className={NavList.length === 3 ? 'CutPoint Three' : NavList.length === 2 ? 'CutPoint Two' : 'CutPoint'}>
71 71
           <view>
72 72
             {
73 73
               NavList.map((item, index) => (

+ 11
- 1
src/pages/index/buildingDetail/components/BuildingDetailBanner/index.scss Ver arquivo

@@ -11,6 +11,16 @@
11 11
     bottom: 100px;
12 12
     z-index: 10;
13 13
     overflow: hidden;
14
+    &.Three {
15
+      >view {
16
+        width: 240px;
17
+      }
18
+    }
19
+    &.Two {
20
+      >view {
21
+        width: 160px;
22
+      }
23
+    }
14 24
     > view {
15 25
       display: block;
16 26
       font-size: 0;
@@ -18,7 +28,7 @@
18 28
       border-radius: 48px;
19 29
       border: 2px solid #1a3b83;
20 30
       background: rgba(255, 255, 255, 0.7);
21
-      width: 240px;
31
+      width: 80px;
22 32
       margin: 0 auto;
23 33
       > text {
24 34
         display: inline-block;

+ 4
- 1
src/pages/index/buildingDetail/index.jsx Ver arquivo

@@ -79,7 +79,10 @@ export default withLayout((props) => {
79 79
               <view className='BannerContainer'>
80 80
                 <view>
81 81
                   <view>
82
-                    <BuildingDetailBanner Info={DetailInfo}></BuildingDetailBanner>
82
+                    {
83
+                      !!DetailInfo.buildingName &&
84
+                      <BuildingDetailBanner Info={DetailInfo}></BuildingDetailBanner>
85
+                    }
83 86
                   </view>
84 87
                 </view>
85 88
               </view>