xujing 5 years ago
parent
commit
f31405e36d

BIN
src/assets/goto.png View File


BIN
src/assets/location.png View File


+ 2
- 2
src/pages/project/detail/Around/index.js View File

71
       </View>
71
       </View>
72
       <ScrollView
72
       <ScrollView
73
         enableBackToTop
73
         enableBackToTop
74
-        style=" padding-top: 830rpx; background: transparent;"
74
+        style=" padding-top: 818rpx; background: transparent;"
75
         scrollY>
75
         scrollY>
76
         <View className="around-box" style="border-radius: 40rpx 40rpx 0 0;">
76
         <View className="around-box" style="border-radius: 40rpx 40rpx 0 0;">
77
           <View className="building-con">
77
           <View className="building-con">
78
             <View>
78
             <View>
79
               <View className="building-name">{detail.buildingName}</View>
79
               <View className="building-name">{detail.buildingName}</View>
80
-              <View className="building-address">{detail.address}</View>
80
+              <View className="building-address"><Image className="location" src={require('@assets/location.png')}></Image>{detail.address}</View>
81
             </View>
81
             </View>
82
             <View className="building-go" onClick={goto}>前往</View>
82
             <View className="building-go" onClick={goto}>前往</View>
83
           </View>
83
           </View>

+ 8
- 0
src/pages/project/detail/Around/style.scss View File

130
     font-size: 36px;
130
     font-size: 36px;
131
     color: #333;
131
     color: #333;
132
   }
132
   }
133
+  .location{
134
+    width: 26px;
135
+    height: 30px;
136
+    margin-right: 10px;
137
+  }
133
   .building-address{
138
   .building-address{
134
     font-size: 28px;
139
     font-size: 28px;
135
     color: #666;
140
     color: #666;
141
+    display: flex;
142
+    align-items: center;
143
+    margin-top: 8px;
136
   }
144
   }
137
   .building-go{
145
   .building-go{
138
     width:130px;
146
     width:130px;

+ 10
- 10
src/pages/project/detail/index.js View File

436
   }
436
   }
437
 
437
 
438
   toRecomonedPage() {
438
   toRecomonedPage() {
439
-    const {
440
-      userInfo: { person: { personType } }
441
-    } = this.props
442
-    if (personType === ROLE_CODE['DRIFT']) {
443
-      // 游客或者客户 区别是否有电话|| personType === ROLE_CODE['CUSTOMER']
444
-      Taro.navigateTo({
445
-        url: `/pages/agent/become/index`
446
-      })
447
-    } else {
439
+    // const {
440
+    //   userInfo: { person: { personType } }
441
+    // } = this.props
442
+    // if (personType === ROLE_CODE['DRIFT']) {
443
+    //   // 游客或者客户 区别是否有电话|| personType === ROLE_CODE['CUSTOMER']
444
+    //   Taro.navigateTo({
445
+    //     url: `/pages/agent/become/index`
446
+    //   })
447
+    // } else {
448
       Taro.navigateTo({
448
       Taro.navigateTo({
449
         url: `/pages/agent/recommend/index?type=projectDeatil`
449
         url: `/pages/agent/recommend/index?type=projectDeatil`
450
       })
450
       })
451
-    }
451
+    // }
452
   }
452
   }
453
 
453
 
454
   toHome() {
454
   toHome() {