|
@@ -12,9 +12,9 @@ export default function ProjectListItem (props) {
|
12
|
12
|
<view className='components ProjectListItem flex-h' onClick={() => { Taro.navigateTo({ url: `/pages/index/buildingDetail/index?id=${Data.buildingId}` }) }}>
|
13
|
13
|
<view className='Img'>
|
14
|
14
|
<view>
|
15
|
|
- <Image mode='aspectFill' className='centerLabel' src={getImgURL(Data.buildingListImg?.length ? Data.buildingListImg[0].url : null)} />
|
|
15
|
+ <Image mode='aspectFill' className='centerLabel' src={getImgURL((Data?.buildingListImg || []).length ? Data.buildingListImg[0].url : null)} />
|
16
|
16
|
{
|
17
|
|
- Data.panoramaList.length > 0 &&
|
|
17
|
+ (Data?.panoramaList || []).length > 0 &&
|
18
|
18
|
<Image mode='heightFix' className='Tips Vr' src={require('@/assets/index-icon18.png')} />
|
19
|
19
|
}
|
20
|
20
|
{
|
|
@@ -44,14 +44,14 @@ export default function ProjectListItem (props) {
|
44
|
44
|
<text>{Data.shareNum || 299 + Math.floor(Math.random() * 10)}次分享</text>
|
45
|
45
|
<view className='Users'>
|
46
|
46
|
{
|
47
|
|
- (uvList.records || []).slice(0, 3).map((item, index) => (
|
|
47
|
+ (uvList?.records || []).slice(0, 3).map((item, index) => (
|
48
|
48
|
<view key={`uv-${index}`}>
|
49
|
49
|
<Image mode='aspectFill' className='centerLabel' src={item.photoOravatar} />
|
50
|
50
|
</view>
|
51
|
51
|
))
|
52
|
52
|
}
|
53
|
53
|
</view>
|
54
|
|
- <text>{uvList.records.length > 0 ? '...' : ''}{Data.pvNum || 299 + Math.floor(Math.random() * 10)}人围观</text>
|
|
54
|
+ <text>{(uvList?.records || []).length > 0 ? '...' : ''}{Data.pvNum || 299 + Math.floor(Math.random() * 10)}人围观</text>
|
55
|
55
|
</view>
|
56
|
56
|
</view>
|
57
|
57
|
</view>
|