1007395918@qq.com 5 年前
父节点
当前提交
0a14ccfed0

+ 10
- 10
src/onlineSelling/pages/detail/index.js 查看文件

95
 
95
 
96
 
96
 
97
   render() {
97
   render() {
98
-    const { grantPhoneVisible, grantAvatarVisible, houseDetail,buildingImgList } = this.state
98
+    const { grantPhoneVisible, grantAvatarVisible, houseDetail, buildingImgList } = this.state
99
     const { userInfo = { person: {} } } = this.props
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
     return (
102
     return (
103
       <Block>
103
       <Block>
124
             scrollY>
124
             scrollY>
125
             <View className='detail__main'>
125
             <View className='detail__main'>
126
               <View style="padding: 0 30rpx;">
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
                 <View className="price">
129
                 <View className="price">
132
                   现价:{houseDetail.price}万
130
                   现价:{houseDetail.price}万
133
               </View>
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
                 <View className="address">
138
                 <View className="address">
139
                   <Image className="location-icon" src={require('../../assets/location.png')}></Image>{address || ''}
139
                   <Image className="location-icon" src={require('../../assets/location.png')}></Image>{address || ''}
140
                 </View>
140
                 </View>

+ 17
- 17
src/onlineSelling/pages/detail/index.scss 查看文件

29
   .wrap {
29
   .wrap {
30
     padding-top: 570px;
30
     padding-top: 570px;
31
     background: transparent;
31
     background: transparent;
32
+    position: relative;
32
   }
33
   }
33
 
34
 
34
   &__main {
35
   &__main {
35
     background: #fff;
36
     background: #fff;
36
     border-radius: 40px 40px 0 0;
37
     border-radius: 40px 40px 0 0;
37
     padding: 60px 0;
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
     .price{
56
     .price{
57
       color: #FE1C1C;
57
       color: #FE1C1C;
58
       font-size: 38px;
58
       font-size: 38px;

+ 1
- 1
src/onlineSelling/pages/houseList/index.js 查看文件

236
 
236
 
237
     const queryParams = [
237
     const queryParams = [
238
       `id=${id}`,
238
       `id=${id}`,
239
-      'from=building_share',
239
+      'from=house_share',
240
       `recommender=${personId}`,
240
       `recommender=${personId}`,
241
       `consultant=${consultant}`,
241
       `consultant=${consultant}`,
242
       `consultantId=${consultantId}`,
242
       `consultantId=${consultantId}`,