a1300399510@qq.com 提交于 2023/04/04 -17:00:01

This commit is contained in:
XiaoMo 2023-04-04 17:00:11 +08:00
parent 3288b1f1dd
commit 5331d9bd35

View File

@ -91,7 +91,8 @@
<template v-for="(item, index) in tenementKey"> <template v-for="(item, index) in tenementKey">
<div class="offer-content-item flexacenter" :key="index" v-if="info[item.key]"> <div class="offer-content-item flexacenter" :key="index" v-if="info[item.key]">
<div class="offer-content-key" v-if="info[item.key]">{{ item.name }}</div> <div class="offer-content-key" v-if="info[item.key]">{{ item.name }}</div>
<div class="offer-content-value">{{ info[item.key] }}</div> <div class="offer-content-value" v-if="item.key != 'school'">{{ info[item.key] }}</div>
<div class="offer-content-value" v-else>{{ info[item.key] }}</div>
</div> </div>
</template> </template>
</div> </div>
@ -287,99 +288,48 @@ export default {
key: "type", key: "type",
name: "出租方式" name: "出租方式"
}, { }, {
key: "currency",
name: "出租方式"
},{
key: "rent", key: "rent",
name: "月租/" name: "月租/"
},{ }, {
key: "property", key: "property",
name: "房屋类型" name: "房屋类型"
},{ }, {
key: "floor", key: "floor",
name: "所在楼层" name: "所在楼层"
},{ }, {
key: "acreage", key: "acreage",
name: "面积(平方呎)" name: "面积(平方呎)"
},{ }, {
key: "acreage", key: "locationText",
name: "面积(平方呎)" name: "所在区域"
},{ }, {
key: "acreage", key: "addressText",
name: "面积(平方呎)" name: "地段/地址"
},{ }, {
key: "acreage", key: "school",
name: "面积(平方呎)" name: "附近学校"
},{ }, {
key: "acreage", key: "gender",
name: "面积(平方呎)" name: "性别要求"
},] }, {
key: "rentaldurationText",
name: "出租时长"
}, {
key: "introduction",
name: "房东或合租人介绍"
}, {
key: "intermediary_text",
name: "发布者身份"
}, {
key: "telText",
name: "电话"
}, {
key: "wechatText",
name: "微信"
}
// < th > :</th> ]
// <td v-text="info.gptype +'>>'+ info.type"></td>
// </tr >
// <tr>
// <th><span v-text="info.rentalperiod"></span>/<span v-text="info.currency || ''"></span>:</th>
// <td v-text="info.rent || info.money"></td>
// </tr>
// <tr>
// <tr>
// <th>:</th>
// <td v-text="info.acreage"></td>
// </tr>
// <tr v-if="info.cityid==1">
// <th>:</th>
// <td v-text="info.location"></td>
// </tr>
// <tr v-if="info.cityid!=1">
// <th>:</th>
// <td v-text="info.country+'>>'+info.city"></td>
// </tr>
// <tr>
// <th>/:</th>
// <td v-text="info.address ||'-'"></td>
// </tr>
// <tr v-if=" info.school && info.school.length > 0 ">
// <th>:</th>
// <td >
// <ul class="school-list">
// <li v-for="s in info.school">
// <span>{{ s.name }}</span>
// <span>{{ s.distance }}</span>
// <tr>
// <th>:</th>
// <td v-text="info.gender"></td>
// </tr>
// <tr>
// <th>:</th>
// <td v-text="info.rentalduration?info.rentalduration:''"></td>
// </tr>
// <tr>
// <th>:</th>
// <td v-html="info.introduction"></td>
// </tr>
// <tr>
// <th>:</th>
// <td v-text="info.intermediary_text"></td>
// </tr>
// <tr>
// <th>:</th>
// <td v-text="info.tel || '-'"></td>
// </tr>
// <tr>
// <th>:</th>
// <td>
// <span v-text="info.wechat || '-'"></span>
// <span v-if="info.iswechattype==2" @click="showBig(info.wechatdata.url)">
// <svg class="wechat-svg" t="1655977827199" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2209" width="32" height="32"><path d="M597.333333 597.333333h85.333334v-85.333333h85.333333v128h-85.333333v42.666667h-85.333334v-42.666667h-85.333333v-128h85.333333v85.333333z m-384-85.333333h256v256H213.333333v-256z m85.333334 85.333333v85.333334h85.333333v-85.333334H298.666667zM213.333333 213.333333h256v256H213.333333V213.333333z m85.333334 85.333334v85.333333h85.333333V298.666667H298.666667z m213.333333-85.333334h256v256h-256V213.333333z m85.333333 85.333334v85.333333h85.333334V298.666667h-85.333334z m85.333334 384h85.333333v85.333333h-85.333333v-85.333333z m-170.666667 0h85.333333v85.333333h-85.333333v-85.333333z" fill="#444444" p-id="2210"></path></svg>
// </span>
// </td>
// </tr >
// <tr>
// <th>WhatsApp:</th>
// <td v-text="info.whatsapp || '-'"></td>
// </tr>
}; };
}, },
@ -465,7 +415,24 @@ export default {
}, "tenement").then(res => { }, "tenement").then(res => {
console.log(res, "res"); console.log(res, "res");
this.info = { ...this.info, ...res.info } let tenementKey = this.tenementKey
let info = { ...this.info, ...res.info }
tenementKey[1].name += info['currency'] ? info['currency'] : '敢于'
if (info.cityid == 1) info['locationText'] = info.location
else info['locationText'] = info.country + '>>' + info.city
info['addressText'] = info['address'] || '-'
info['rentaldurationText'] = info.rentalduration || '不限'
info['telText'] = info.tel || '-'
info['wechatText'] = info.wechat || '-'
this.info = info
console.log(this.info); console.log(this.info);
}) })
}, },