陈冉 6 years ago
parent
commit
a94d45fd7b

+ 46
- 6
src/pages/building/buildingdetail.vue View File

@@ -1,8 +1,14 @@
1 1
 <template>
2 2
   <div class="context" >
3 3
     <vue-headful title="楼盘详情页"  />
4
-    <city-area></city-area>
5
-    <building-header></building-header>
4
+    <div class="cityarea">
5
+        <span class="iconfont icon-Shape1 iconarea"></span>
6
+        <span class="areaname">浦口区</span>
7
+    </div>
8
+    <div class="headerbigimg">
9
+      <img class="bigimg" src=""/>
10
+    </div>
11
+  
6 12
     <van-cell-group class="clickbutton">
7 13
         <div class="gotopageimg" @click="gotopageimg"><van-cell  class="clickcharacters" title="查看更多图片"/><span class="iconfont icon-youfan right"></span></div>
8 14
         <span class="iconline"></span>
@@ -26,25 +32,21 @@
26 32
 
27 33
 <script>
28 34
 import { mapState, mapActions } from "vuex";
29
-import BuildingHeader from "./components/buildingdetailheader.vue";
30 35
 import HouseName from "./components/housename.vue";
31 36
 import BuildingData from "./components/buildingdata.vue";
32 37
 import BuildingConduction from "./components/buildingconduction.vue";
33 38
 import BuildingPerimeter from "./components/buildingperimeter.vue";
34 39
 import CorrelationDynamics from "./components/correlationdynamics.vue";
35
-import CityArea from "./components/cityarea.vue";
36 40
 
37 41
 export default {
38 42
   name: "BuildingDetail",
39 43
   components: {
40 44
     "vue-headful": () => import("vue-headful"),
41
-    BuildingHeader: BuildingHeader,
42 45
     HouseName: HouseName,
43 46
     BuildingData: BuildingData,
44 47
     BuildingConduction: BuildingConduction,
45 48
     BuildingPerimeter: BuildingPerimeter,
46 49
     CorrelationDynamics: CorrelationDynamics,
47
-    CityArea: CityArea
48 50
   },
49 51
   data() {
50 52
     return {};
@@ -86,6 +88,44 @@ export default {
86 88
   height: 610px;
87 89
   overflow-y: auto;
88 90
 
91
+  .cityarea{
92
+    width:72px;
93
+    height:27px;
94
+    background:rgba(0,0,0,0.39);
95
+    padding: 0 0 0 5px;
96
+    border-radius:0px 0px 25px 0px;
97
+    position: fixed;
98
+    top: 0;
99
+    left: 0;
100
+    display: flex;
101
+    flex-direction: row;
102
+    align-items: center;
103
+
104
+    .iconarea{
105
+        font-size: 10px !important;
106
+        color:rgba(255,255,255,1) !important;
107
+        padding-right:5px;
108
+    }
109
+
110
+    .areaname{
111
+        font-size:12px;
112
+        font-family:PingFangSC-Regular;
113
+        font-weight:400;
114
+        color:rgba(255,255,255,1);
115
+        line-height:17px;
116
+    }
117
+}
118
+
119
+  .headerbigimg{
120
+    width: 100%;
121
+    height: 211px;
122
+
123
+    .bigimg{
124
+      width: 100%;
125
+      height: 100%;
126
+  }
127
+  }
128
+
89 129
   .clickbutton {
90 130
     width: 100%;
91 131
     height: 52px;

+ 1
- 1
src/pages/building/buildingimage.vue View File

@@ -5,7 +5,7 @@
5 5
            <div class="houseimage">
6 6
                 <van-swipe class="slidewrapper" :autoplay="3000">
7 7
                     <van-swipe-item class="slideimg" v-for="(image, index) in images" :key="index">
8
-                        <img class="lazyimage" v-lazy="image" />
8
+                        <img class="lazyimage" />
9 9
                     </van-swipe-item>
10 10
                 </van-swipe>
11 11
            </div>

+ 4
- 1
src/pages/building/components/typeheader.vue View File

@@ -2,7 +2,7 @@
2 2
     <div class="typeheader">
3 3
         <van-swipe class="slidewrapper" :autoplay="3000">
4 4
             <van-swipe-item class="slideimg" v-for="(image, index) in images" :key="index">
5
-                <img v-lazy="image" />
5
+                <img class="typeimg" />
6 6
             </van-swipe-item>
7 7
         </van-swipe>
8 8
         <div class="typeindex">
@@ -40,6 +40,9 @@ export default {
40 40
             width: 100%;
41 41
             height: 100%;
42 42
         }
43
+        .typeimg{
44
+            max-width: 100%;
45
+        }
43 46
     }
44 47
 
45 48
     .typeindex{