取新
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
</div>
|
||||
<div style="padding: 0 10px;margin-top:15px;" class="dis-f al-item" v-if="itemData.type === 'housing'">
|
||||
<img src="../../assets/homeImage/addMarker.png" class="add-marker" alt="">
|
||||
<span class="address-text">{{ location.data&&location.data[itemData.location&&itemData.location.substring(0,1)] }} > {{ location.data&&location.data[itemData.location] }}</span>
|
||||
<span class="address-text">{{ location.data && location.data[itemData.location && itemData.location.substring(0, 1)]
|
||||
}} > {{ location.data && location.data[itemData.location] }}</span>
|
||||
</div>
|
||||
<div style="padding:0 10px;margin-top:12px;" v-if="itemData.type === 'housing'">
|
||||
<span class="unit">{{ itemData.currency }}</span>
|
||||
@@ -52,7 +53,8 @@
|
||||
</div>
|
||||
<div>
|
||||
<span class="unit">HK$</span>
|
||||
<span class="price">{{ itemData.specifications && itemData.specifications[0]&&itemData.specifications[0].value }}</span>
|
||||
<span class="price">{{ itemData.specifications &&
|
||||
itemData.specifications[0] && itemData.specifications[0].value }}</span>
|
||||
<span class="date">/月</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -63,14 +65,18 @@
|
||||
</div>
|
||||
<div>
|
||||
<span class="unit">HK$</span>
|
||||
<span class="price">{{ itemData.specifications && itemData.specifications[1]&&itemData.specifications[1].value }}</span>
|
||||
<span class="price">{{ itemData.specifications &&
|
||||
itemData.specifications[1] && itemData.specifications[1].value }}</span>
|
||||
<span class="date">/月</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="corner-box">
|
||||
<img src="../../assets/homeImage/corner.svg" v-if="itemData.type === 'housing'&&itemData.intermediary!==1" class="corner-img" alt="">
|
||||
<img src="../../assets/homeImage/intermediaryCorner.svg" v-if="itemData.type === 'housing'&&itemData.intermediary===1" style="transform: rotate(90deg);" class="tab-img" alt="">
|
||||
<img src="../../assets/homeImage/corner.svg" v-if="itemData.type === 'housing' && itemData.intermediary !== 1"
|
||||
class="corner-img" alt="">
|
||||
<img src="../../assets/homeImage/intermediaryCorner.svg"
|
||||
v-if="itemData.type === 'housing' && itemData.intermediary === 1" style="transform: rotate(90deg);"
|
||||
class="tab-img" alt="">
|
||||
</div>
|
||||
<!-- <div class="apartment-price-more flexcenter">更多</div> -->
|
||||
|
||||
@@ -83,7 +89,8 @@
|
||||
|
||||
<!-- 广告 -->
|
||||
</div>
|
||||
<img :src="itemData.imageLocal || itemData.image" class="live-img" v-if="itemData.type === 'adv'" alt="" @click="watchAdv">
|
||||
<img :src="itemData.imageLocal || itemData.image" class="live-img" v-if="itemData.type === 'adv'" alt=""
|
||||
@click="watchAdv">
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@@ -109,7 +116,7 @@ let watchInfo=()=>{
|
||||
path: itemData.type === 'apartment' ? '/apartmentDetail' : '/detail',
|
||||
query: {
|
||||
// id: itemData.type=='apartment'?itemData.id:itemData.uniqid,
|
||||
// [itemData.type=='apartment'?itemData.id:itemData.uniqid,]: itemData.type=='apartment'?itemData.id:itemData.uniqid,
|
||||
[itemData.type == 'apartment' ? "uniqid" : "id"]: itemData.type == 'apartment' ? itemData.id : itemData.uniqid,
|
||||
type: itemData.intermediary == '1' ? 2 : itemData.intermediary == '6' ? 3 : !itemData.intermediary ? '' : 1
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user