|
@@ -5,6 +5,7 @@ import AuthRole from '@/components/Auth/AuthRole'
|
5
|
5
|
import { ROLE_CODE } from '@/constants/user'
|
6
|
6
|
import classNames from 'classnames'
|
7
|
7
|
import useFavor from '@/utils/hooks/useFavor'
|
|
8
|
+import { formatDate } from '@/utils/chatDate'
|
8
|
9
|
import '@/assets/css/iconfont.css'
|
9
|
10
|
import './index.scss'
|
10
|
11
|
|
|
@@ -53,35 +54,38 @@ export default function BasicInfo (props) {
|
53
|
54
|
<view className='ProjectList'>
|
54
|
55
|
<ScrollView scroll-x show-scrollbar={false}>
|
55
|
56
|
{
|
56
|
|
- (Info.buildingProjectType || []).map((item, index) => (
|
57
|
|
- <view className='ListItem' key={`List-${index}`}>
|
58
|
|
- <Image mode='heightFix' src={require('@/assets/buildingDetail-icon4.jpg')} />
|
59
|
|
- <view>
|
|
57
|
+ (Info.buildingProjectType || []).map((item, index) => {
|
|
58
|
+ const priceUnit = item.priceType === 'average' ? '元/㎡' : '万元/套'
|
|
59
|
+ let price = item.startPrice === item.endPrice ? item.startPrice : `${item.startPrice}-${item.endPrice}`
|
|
60
|
+ if (!item.startPrice && !item.endPrice) {
|
|
61
|
+ price = '暂无'
|
|
62
|
+ } else {
|
|
63
|
+ price = `约${price}${priceUnit}`
|
|
64
|
+ }
|
|
65
|
+
|
|
66
|
+ return (
|
|
67
|
+ <view className='ListItem' key={`List-${index}`}>
|
|
68
|
+ <Image mode='heightFix' src={require('@/assets/buildingDetail-icon4.jpg')} />
|
60
|
69
|
<view>
|
61
|
|
- <text>项目类型:</text>
|
62
|
|
- <text className='active black'>{item.buildingTypeName}</text>
|
|
70
|
+ <view>
|
|
71
|
+ <text>项目类型:</text>
|
|
72
|
+ <text className='active black'>{item.buildingTypeName}</text>
|
|
73
|
+ </view>
|
|
74
|
+ <view>
|
|
75
|
+ <text>房屋产权:</text>
|
|
76
|
+ <text className='active'>{item.rightsYear}年</text>
|
|
77
|
+ <text>装修标准:</text>
|
|
78
|
+ <text className='active'>{item.decoration || '暂无'}</text>
|
|
79
|
+ </view>
|
|
80
|
+ <view>
|
|
81
|
+ <text>项目参考价格:</text>
|
|
82
|
+ <text className='active'>{price}</text>
|
|
83
|
+ </view>
|
|
84
|
+ <text className='SaleStatus active'>{item.marketStatus}</text>
|
63
|
85
|
</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>
|
82
|
86
|
</view>
|
83
|
|
- </view>
|
84
|
|
- ))
|
|
87
|
+ )
|
|
88
|
+ })
|
85
|
89
|
}
|
86
|
90
|
</ScrollView>
|
87
|
91
|
</view>
|
|
@@ -107,7 +111,7 @@ export default function BasicInfo (props) {
|
107
|
111
|
</view>
|
108
|
112
|
<text>:</text>
|
109
|
113
|
<view className='flex-item3'>
|
110
|
|
- <text className='active'>{Info.openingDate || '待定'}</text>
|
|
114
|
+ <text className='active'>{formatDate(Info.openingDate, 'yyyy-MM-dd' ) || '待定'}</text>
|
111
|
115
|
</view>
|
112
|
116
|
</view>
|
113
|
117
|
<view className='flex-h'>
|
|
@@ -119,7 +123,7 @@ export default function BasicInfo (props) {
|
119
|
123
|
<text className='active'>{Info.volumeRate || '暂无'}</text>
|
120
|
124
|
</view>
|
121
|
125
|
<view style='width: 60px;'>
|
122
|
|
- <text>车位比率</text>
|
|
126
|
+ <text>车位数量</text>
|
123
|
127
|
</view>
|
124
|
128
|
<text>:</text>
|
125
|
129
|
<view className='flex-item'>
|