| @@ -30,8 +30,8 @@ | |||
| <span class="main-price">面议</span> | |||
| </div> | |||
| <div class="main-showPrice" v-else> | |||
| <span class="main-price">{{ item.housingInformationList[0].price }}</span> | |||
| <span>{{ item.housingInformationList[0].unit }}</span> | |||
| <span class="main-price">{{ getShowPrice(item).price }}</span> | |||
| <span>{{ getShowPrice(item).unit }}</span> | |||
| </div> | |||
| <div class="main-showTotalPrice"> | |||
| 总价:{{ item.housingInformationList[0].showTotalPrice }} | |||
| @@ -66,6 +66,18 @@ export default { | |||
| }, | |||
| }); | |||
| }, | |||
| getShowPrice(item){ | |||
| let showPrice = item.housingInformationList[0].showPrice; | |||
| if(showPrice && showPrice !== '面议'){ | |||
| let price = "4000元/㎡/天".split('/')[0]; | |||
| let unit = showPrice.replace(price,'') | |||
| return { | |||
| price, | |||
| unit | |||
| } | |||
| } | |||
| return "面议" | |||
| }, | |||
| // 获取详情 | |||
| getDesc(item){ | |||
| let str = `最短起租:${ item.shortestRent } | 总面积:${ item.totalArea }m² | 支付方式:${ item.payment } | ${ item.type }` | |||