|
@@ -1,4 +1,4 @@
|
1
|
|
-import { useState } from 'react'
|
|
1
|
+
|
2
|
2
|
import Taro from '@tarojs/taro'
|
3
|
3
|
import { ScrollView, Image } from '@tarojs/components'
|
4
|
4
|
import AuthRole from '@/components/Auth/AuthRole'
|
|
@@ -48,41 +48,44 @@ export default function BasicInfo (props) {
|
48
|
48
|
</view>
|
49
|
49
|
|
50
|
50
|
{/* 项目列表 */}
|
51
|
|
- <view className='ProjectList'>
|
52
|
|
- <ScrollView scroll-x>
|
53
|
|
- {
|
54
|
|
- (Info.buildingProjectType || []).map((item, index) => (
|
55
|
|
- <view className='ListItem' key={`List-${index}`}>
|
56
|
|
- <Image mode='heightFix' src={require('@/assets/buildingDetail-icon4.jpg')} />
|
57
|
|
- <view>
|
58
|
|
- <view>
|
59
|
|
- <text>项目类型:</text>
|
60
|
|
- <text className='active black'>{item.buildingTypeName}</text>
|
61
|
|
- </view>
|
62
|
|
- <view>
|
63
|
|
- <text>房屋产权:</text>
|
64
|
|
- <text className='active'>{item.rightsYear}年</text>
|
65
|
|
- <text>装修标准:</text>
|
66
|
|
- <text className='active'>{item.decoration || '暂无'}</text>
|
67
|
|
- </view>
|
|
51
|
+ {
|
|
52
|
+ (Info.buildingProjectType || []).length > 0 &&
|
|
53
|
+ <view className='ProjectList'>
|
|
54
|
+ <ScrollView scroll-x>
|
|
55
|
+ {
|
|
56
|
+ (Info.buildingProjectType || []).map((item, index) => (
|
|
57
|
+ <view className='ListItem' key={`List-${index}`}>
|
|
58
|
+ <Image mode='heightFix' src={require('@/assets/buildingDetail-icon4.jpg')} />
|
68
|
59
|
<view>
|
69
|
|
- <text>项目参考价格:</text>
|
70
|
|
- {
|
71
|
|
- (item.startPrice || item.endPrice) &&
|
72
|
|
- <text className='active'>约{item.startPrice}-{item.endPrice}万/套</text>
|
73
|
|
- }
|
74
|
|
- {
|
75
|
|
- !(item.startPrice || item.endPrice) &&
|
76
|
|
- <text className='active'>暂无数据</text>
|
77
|
|
- }
|
|
60
|
+ <view>
|
|
61
|
+ <text>项目类型:</text>
|
|
62
|
+ <text className='active black'>{item.buildingTypeName}</text>
|
|
63
|
+ </view>
|
|
64
|
+ <view>
|
|
65
|
+ <text>房屋产权:</text>
|
|
66
|
+ <text className='active'>{item.rightsYear}年</text>
|
|
67
|
+ <text>装修标准:</text>
|
|
68
|
+ <text className='active'>{item.decoration || '暂无'}</text>
|
|
69
|
+ </view>
|
|
70
|
+ <view>
|
|
71
|
+ <text>项目参考价格:</text>
|
|
72
|
+ {
|
|
73
|
+ (item.startPrice || item.endPrice) &&
|
|
74
|
+ <text className='active'>约{item.startPrice}-{item.endPrice}万/套</text>
|
|
75
|
+ }
|
|
76
|
+ {
|
|
77
|
+ !(item.startPrice || item.endPrice) &&
|
|
78
|
+ <text className='active'>暂无数据</text>
|
|
79
|
+ }
|
|
80
|
+ </view>
|
|
81
|
+ <text className='SaleStatus active'>{item.marketStatus}</text>
|
78
|
82
|
</view>
|
79
|
|
- <text className='SaleStatus active'>{item.marketStatus}</text>
|
80
|
83
|
</view>
|
81
|
|
- </view>
|
82
|
|
- ))
|
83
|
|
- }
|
84
|
|
- </ScrollView>
|
85
|
|
- </view>
|
|
84
|
+ ))
|
|
85
|
+ }
|
|
86
|
+ </ScrollView>
|
|
87
|
+ </view>
|
|
88
|
+ }
|
86
|
89
|
|
87
|
90
|
{/* 隔断 */}
|
88
|
91
|
<view className='CutLine'></view>
|
|
@@ -151,20 +154,20 @@ export default function BasicInfo (props) {
|
151
|
154
|
|
152
|
155
|
{/* 围观 */}
|
153
|
156
|
<view className='Views flex-h'>
|
154
|
|
- <text>{Info.pvNum || 0}人围观</text>
|
155
|
|
- <view className='flex-item'>
|
156
|
|
- {
|
157
|
|
- (Info?.uvList?.records || []).slice(0, 8).map((item, index) => (
|
158
|
|
- <view key={`ViewsItem-${index}`}>
|
159
|
|
- <Image mode='aspectFill' className='centerLabel' src={item.photoOravatar} />
|
160
|
|
- </view>
|
161
|
|
- ))
|
162
|
|
- }
|
163
|
|
- {
|
164
|
|
- (Info?.uvList?.records || []).length > 8 &&
|
165
|
|
- <text>...</text>
|
166
|
|
- }
|
167
|
|
- </view>
|
|
157
|
+ <text>{Info.pvNum || 0}人围观</text>
|
|
158
|
+ <view className='flex-item'>
|
|
159
|
+ {
|
|
160
|
+ (Info?.uvList?.records || []).slice(0, 8).map((item, index) => (
|
|
161
|
+ <view key={`ViewsItem-${index}`}>
|
|
162
|
+ <Image mode='aspectFill' className='centerLabel' src={item.photoOravatar} />
|
|
163
|
+ </view>
|
|
164
|
+ ))
|
|
165
|
+ }
|
|
166
|
+ {
|
|
167
|
+ (Info?.uvList?.records || []).length > 8 &&
|
|
168
|
+ <text>...</text>
|
|
169
|
+ }
|
|
170
|
+ </view>
|
168
|
171
|
</view>
|
169
|
172
|
|
170
|
173
|
{/* 互动 */}
|