import Taro from '@tarojs/taro' import { Image } from '@tarojs/components' import { getImgURL } from '@/utils/image' import './style.scss' export default (props) => { const { Data = {} } = props const goto = (it) => { Taro.navigateTo({ url: `/pages/index/buildingDetail/index?id=${it.buildingId}` }) } return ( goto(Data)}> { Data.panoramaList.length > 0 && } { Data.videoUrl !== null && } goto(Data)}> {Data.buildingName} {Data.price || '价格待定'} goto(Data)}>{Data.address} goto(Data)}> { (Data.buildingTag || []).map(x => x.tagName).slice(0, 6).map((x) => ({x})) } goto(Data)}> {`${Data.shareList?.total || 0} 次分享`} { (Data.uvList?.length || 0) > 0 && ( { Data.uvList.map((x) => ( )) } ) } {`...${Data.uvList?.length || 0}人围观`} {props.children} ) }