|
@@ -6,7 +6,7 @@ import { getImgURL } from '@/utils/image'
|
6
|
6
|
import './index.scss'
|
7
|
7
|
|
8
|
8
|
export default function ProjectListItem (props) {
|
9
|
|
- const { Data = {} } = props
|
|
9
|
+ const { Data = {}, ShowImgIcon = true } = props
|
10
|
10
|
const { uvList = [] } = Data
|
11
|
11
|
return (
|
12
|
12
|
<view className='components ProjectListItem flex-h' onClick={() => { Taro.navigateTo({ url: `/pages/index/buildingDetail/index?id=${Data.buildingId || Data.targetId}` }) }}>
|
|
@@ -14,11 +14,11 @@ export default function ProjectListItem (props) {
|
14
|
14
|
<view>
|
15
|
15
|
<Image mode='aspectFill' className='centerLabel' src={getImgURL((Data?.buildingListImg || []).length ? Data.buildingListImg[0].url : Data.activityImg || null)} />
|
16
|
16
|
{
|
17
|
|
- (Data?.panoramaList || []).length > 0 &&
|
|
17
|
+ (Data?.panoramaList || []).length > 0 && ShowImgIcon &&
|
18
|
18
|
<Image mode='heightFix' className='Tips Vr' src={require('@/assets/index-icon18.png')} />
|
19
|
19
|
}
|
20
|
20
|
{
|
21
|
|
- Data.videoUrl !== null &&
|
|
21
|
+ Data.videoUrl !== null && ShowImgIcon &&
|
22
|
22
|
<Image mode='heightFix' className='Tips Video' src={require('@/assets/index-icon19.png')} />
|
23
|
23
|
}
|
24
|
24
|
</view>
|