Commit e906af89 authored by wangjiankun's avatar wangjiankun

feat: 点击楼盘信息的图片与楼盘名称跳转到楼盘详情

fix:楼盘详情返回按钮功能
parent ea8971c0
......@@ -152,8 +152,8 @@
</div>
<div v-else-if="showType === 'property'" class="dealWidth">
<div class="searchDetailFlex">
<img height="200" :src="require('@assets/img/loupan.png')" alt="">
<p class="propertyName">{{propertyDetailData.name || '楼房名称'}}</p>
<img style="cursor: pointer" @click="toPropertyDetail" height="200" :src="require('@assets/img/loupan.png')" alt="">
<p @click="toPropertyDetail" class="propertyName">{{propertyDetailData.name || '楼房名称'}}</p>
<p class="propertyDetail" v-html="'价格'+':' + propertyDetailData.price + '/m<sup>2</sup>'"></p>
<p class="propertyDetail">{{'产品类型'+ ':' + propertyDetailData.productType}}</p>
<p class="propertyDetail"
......@@ -245,6 +245,12 @@
query: item
})
},
toPropertyDetail() {
this.$router.push({
path: '/propertiesDetail',
query: this.propertyDetailData
})
},
showTowerInfo(item) {
console.log(item)
this.propertyDetailData = JSON.parse(JSON.stringify(item))
......
......@@ -2,7 +2,7 @@
<section class="propertiesMain">
<header class="header">
<div class="back">
<el-link type="primary">返回</el-link>
<el-link type="primary" @click="$router.go(-1)">返回</el-link>
</div>
<div class="name">
{{propertyData.propertyName}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment