1007395918@qq.com 5 anni fa
parent
commit
0a14ccfed0

+ 10
- 10
src/onlineSelling/pages/detail/index.js Vedi File

@@ -95,9 +95,9 @@ export default class Index extends Component {
95 95
 
96 96
 
97 97
   render() {
98
-    const { grantPhoneVisible, grantAvatarVisible, houseDetail,buildingImgList } = this.state
98
+    const { grantPhoneVisible, grantAvatarVisible, houseDetail, buildingImgList } = this.state
99 99
     const { userInfo = { person: {} } } = this.props
100
-    const address = `${houseDetail.buildingName||''}${houseDetail.termName||''}${houseDetail.blockName||''}${houseDetail.unitName||''}${houseDetail.floorName||''}${houseDetail.roomName||''}`
100
+    const address = `${houseDetail.buildingName || ''}${houseDetail.termName || ''}${houseDetail.blockName || ''}${houseDetail.unitName || ''}${houseDetail.floorName || ''}${houseDetail.roomName || ''}`
101 101
 
102 102
     return (
103 103
       <Block>
@@ -124,17 +124,17 @@ export default class Index extends Component {
124 124
             scrollY>
125 125
             <View className='detail__main'>
126 126
               <View style="padding: 0 30rpx;">
127
-                <View className="title">
128
-                  <View className="name">{houseDetail.apartmentName || ''}</View>
129
-                  <View className="btn" onClick={() => this.handleChat(houseDetail.buildingId)}>询问优惠</View>
130
-                </View>
127
+                <View className="name">{houseDetail.apartmentName || ''}</View>
128
+                <View className="btn" onClick={() => this.handleChat(houseDetail.buildingId)}>询问优惠</View>
131 129
                 <View className="price">
132 130
                   现价:{houseDetail.price}万
133 131
               </View>
134
-                <View className="area">
135
-                  {houseDetail.buildingArea ? <Text>建筑面积约<Text style="color:#FE1C1C">{houseDetail.buildingArea}</Text>m² </Text> : '建筑面积待定'}
136
-                  <Text style="margin-left:20rpx">{houseDetail.insideArea ? <Text>使用面积约<Text style="color:#FE1C1C">{houseDetail.insideArea}</Text>m² </Text> : '使用面积待定'}</Text>
137
-                </View>
132
+                {houseDetail.apartmentName &&
133
+                  <View className="area">
134
+                    {houseDetail.buildingArea ? <Text>建筑面积约<Text style="color:#FE1C1C">{houseDetail.buildingArea}</Text>m² </Text> : '建筑面积待定'}
135
+                    <Text style="margin-left:20rpx">{houseDetail.insideArea ? <Text>使用面积约<Text style="color:#FE1C1C">{houseDetail.insideArea}</Text>m² </Text> : '使用面积待定'}</Text>
136
+                  </View>
137
+                }
138 138
                 <View className="address">
139 139
                   <Image className="location-icon" src={require('../../assets/location.png')}></Image>{address || ''}
140 140
                 </View>

+ 17
- 17
src/onlineSelling/pages/detail/index.scss Vedi File

@@ -29,30 +29,30 @@
29 29
   .wrap {
30 30
     padding-top: 570px;
31 31
     background: transparent;
32
+    position: relative;
32 33
   }
33 34
 
34 35
   &__main {
35 36
     background: #fff;
36 37
     border-radius: 40px 40px 0 0;
37 38
     padding: 60px 0;
38
-    .title{
39
-      display: flex;
40
-      align-items: center;
41
-      justify-content: space-between;
42
-      .name{
43
-        font-size: 44px;
44
-        color: #333333;
45
-        font-weight: 600;
46
-      }
47
-      .btn{
48
-        background-color: #F3B82E;
49
-        font-size: 30px;
50
-        color: #fff;
51
-        padding: 14px 28px;
52
-        font-weight: 300;
53
-        border-radius: 36px;
54
-      }
39
+   
40
+    .name{
41
+      font-size: 44px;
42
+      color: #333333;
43
+      font-weight: 600;
44
+    }
45
+    .btn{
46
+      background-color: #F3B82E;
47
+      font-size: 30px;
48
+      color: #fff;
49
+      padding: 14px 28px;
50
+      font-weight: 300;
51
+      border-radius: 36px;
52
+      position: absolute;
53
+      right: 30px;
55 54
     }
55
+    
56 56
     .price{
57 57
       color: #FE1C1C;
58 58
       font-size: 38px;

+ 1
- 1
src/onlineSelling/pages/houseList/index.js Vedi File

@@ -236,7 +236,7 @@ export default class HouseList extends Component {
236 236
 
237 237
     const queryParams = [
238 238
       `id=${id}`,
239
-      'from=building_share',
239
+      'from=house_share',
240 240
       `recommender=${personId}`,
241 241
       `consultant=${consultant}`,
242 242
       `consultantId=${consultantId}`,