diff --git a/src/views/detail/detailIndex.vue b/src/views/detail/detailIndex.vue
index e124d32..fb04ae9 100755
--- a/src/views/detail/detailIndex.vue
+++ b/src/views/detail/detailIndex.vue
@@ -91,7 +91,8 @@
{{ item.name }}
-
{{ info[item.key] }}
+
{{ info[item.key] }}
+
{{ info[item.key] }}
@@ -287,99 +288,48 @@ export default {
key: "type",
name: "出租方式"
}, {
- key: "currency",
- name: "出租方式"
- },{
key: "rent",
name: "月租/"
- },{
+ }, {
key: "property",
name: "房屋类型"
- },{
+ }, {
key: "floor",
name: "所在楼层"
- },{
+ }, {
key: "acreage",
name: "面积(平方呎)"
- },{
- key: "acreage",
- name: "面积(平方呎)"
- },{
- key: "acreage",
- name: "面积(平方呎)"
- },{
- key: "acreage",
- name: "面积(平方呎)"
- },{
- key: "acreage",
- name: "面积(平方呎)"
- },]
+ }, {
+ key: "locationText",
+ name: "所在区域"
+ }, {
+ key: "addressText",
+ name: "地段/地址"
+ }, {
+ key: "school",
+ name: "附近学校"
+ }, {
+ key: "gender",
+ name: "性别要求"
+ }, {
+ key: "rentaldurationText",
+ name: "出租时长"
+ }, {
+ key: "introduction",
+ name: "房东或合租人介绍"
+ }, {
+ key: "intermediary_text",
+ name: "发布者身份"
+ }, {
+ key: "telText",
+ name: "电话"
+ }, {
+ key: "wechatText",
+ name: "微信"
+ }
- // < th > 出租方式:
- //
|
- //
- //
- // 月租/: |
- // |
- //
- //
- //
- // 面积(平方呎): |
- // |
- //
- //
- // 所在区域: |
- // |
- //
- //
- // 所在区域: |
- // |
- //
- //
- // 地段/地址: |
- // |
- //
- //
- // 附近学校: |
- //
- //
- // -
- // {{ s.name }}
- // {{ s.distance }}
- //
- // 性别要求: |
- // |
- //
- //
- // 出租时长: |
- // |
- //
- //
- // 房东或合租人介绍: |
- // |
- //
- //
- // 发布者身份: |
- // |
- //
- //
- // 电话: |
- // |
- //
- //
- // 微信: |
- //
- //
- //
- //
- //
- // |
- //
- //
- // WhatsApp: |
- // |
- //
+ ]
};
},
@@ -465,7 +415,24 @@ export default {
}, "tenement").then(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);
})
},
|