判断图片数组是否大于0
This commit is contained in:
parent
fb61459b4e
commit
b4e65dda58
@ -33,7 +33,7 @@
|
||||
v-if="Array.isArray(housingInfo['data'] && housingInfo['data'].info.rent)">
|
||||
{{
|
||||
housingInfo['data'] && housingInfo['data'].info.rent[0]
|
||||
}} <span
|
||||
}}<span
|
||||
v-if="housingInfo['data'] && housingInfo['data'].info.rent[1]">~{{ housingInfo['data']
|
||||
&& housingInfo['data'].info.rent[1] }}</span>
|
||||
</span>
|
||||
@ -110,7 +110,7 @@
|
||||
<span class="rent" v-if="Array.isArray(housingInfo['data'] && housingInfo['data'].info.rent)">
|
||||
{{
|
||||
housingInfo['data'] && housingInfo['data'].info.rent[0]
|
||||
}} <span
|
||||
}}<span
|
||||
v-if="housingInfo['data'] && housingInfo['data'].info.rent[1]">~{{ housingInfo['data'] &&
|
||||
housingInfo['data'].info.rent[1] }}</span>
|
||||
</span>
|
||||
@ -166,7 +166,7 @@
|
||||
</div>
|
||||
<div class="image-box"
|
||||
v-if="(housingInfo['data'] && housingInfo['data'].info && housingInfo['data'].info.video) ||
|
||||
(housingInfo['data'] && housingInfo['data'].info && housingInfo['data'].info.picturegroup)">
|
||||
(housingInfo['data'] && housingInfo['data'].info && housingInfo['data'].info.picturegroup.length>0)">
|
||||
<div class="dis-f al-item">
|
||||
<img src="../assets/img/detail/videoIcon.png" v-if="housingInfo['data'] &&
|
||||
housingInfo['data'].info.video &&
|
||||
@ -316,8 +316,7 @@
|
||||
}}
|
||||
</span><span v-if="housingInfo['data'] && housingInfo['data'].info.acreage[1] ? housingInfo['data']
|
||||
&&
|
||||
housingInfo['data'].info.acreage[1] : 0">~
|
||||
{{
|
||||
housingInfo['data'].info.acreage[1] : 0">~{{
|
||||
housingInfo['data'] && housingInfo['data'].info.acreage[1] ?
|
||||
housingInfo['data']
|
||||
&&
|
||||
|
Loading…
x
Reference in New Issue
Block a user