王饶冀 3 лет назад
Родитель
Сommit
5e340fcfd2

+ 3
- 13
digital-park-web/digital-park/src/views/investment-service/InvestmentServiceList/components/PropertyManage.vue Просмотреть файл

</div> </div>
</div> </div>
<div class="main-right fr"> <div class="main-right fr">
<div class="main-showPrice" v-if="item.housingInformationList[0].showTotalPrice == '面议'">
<div class="main-showPrice" v-if="item.showTotalPrice == '面议'">
<span class="main-price">面议</span> <span class="main-price">面议</span>
</div> </div>
<div class="main-showPrice" v-else> <div class="main-showPrice" v-else>
<span>{{ getShowPrice(item).unit }}</span> <span>{{ getShowPrice(item).unit }}</span>
</div> </div>
<div class="main-showTotalPrice"> <div class="main-showTotalPrice">
总价:{{ item.housingInformationList[0].showTotalPrice }}
总价:{{ item.showTotalPrice }}
</div> </div>
</div> </div>
</div> </div>
}); });
}, },
getShowPrice(item){ getShowPrice(item){
let showPrice = item.housingInformationList[0].showPrice;
let showPrice = item.showPrice;
if(showPrice && showPrice !== '面议'){ if(showPrice && showPrice !== '面议'){
let price = showPrice.split('/')[0]; let price = showPrice.split('/')[0];
let unit = showPrice.replace(price,'') let unit = showPrice.replace(price,'')
let str = `最短起租:${ item.shortestRent } | 总面积:${ item.totalArea }m² | 支付方式:${ item.payment } | ${ item.type }` let str = `最短起租:${ item.shortestRent } | 总面积:${ item.totalArea }m² | 支付方式:${ item.payment } | ${ item.type }`
return str return str
}, },
// 获取可选
getOptional(item) {
let decoration = [];
item.housingInformationList.forEach((el) => {
if (!decoration.includes(el.decoration)) {
decoration.push(el.decoration);
}
});
return "可选:" + decoration.join("、");
},
// 获取房源优势颜色 // 获取房源优势颜色
getListingColor(item) { getListingColor(item) {
let wuyeguanli_fangyuanyoushi = let wuyeguanli_fangyuanyoushi =

Загрузка…
Отмена
Сохранить