|
|
@@ -19,7 +19,7 @@ |
|
|
|
<span class="mian-detail-span">房源地址:</span> |
|
|
|
{{ propertyDetail.address }} |
|
|
|
</div> |
|
|
|
<div class="main-btn"> |
|
|
|
<div class="main-btn" @click="linkCustomerService"> |
|
|
|
<img |
|
|
|
src="~@assets/image/product/consult-icon.png" |
|
|
|
class="consult-icon" |
|
|
@@ -121,6 +121,7 @@ import Footer from "@components/Footer.vue"; |
|
|
|
import "./PropertyDetail.scss"; |
|
|
|
import { getByIdPropertyManage } from "@api/index.js"; |
|
|
|
import { parseMarkdown, formatImg } from "@/utils/common"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
const ListingFacilities = { |
|
|
|
精装修: 1, |
|
|
|
有线网络: 2, |
|
|
@@ -132,7 +133,13 @@ const ListingFacilities = { |
|
|
|
接发传真: 8, |
|
|
|
}; |
|
|
|
export default { |
|
|
|
|
|
|
|
components: { Nav, Footer }, |
|
|
|
computed: { |
|
|
|
...mapGetters({ |
|
|
|
currentAccount: "currentAccount", |
|
|
|
}), |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
pageLoading: false, |
|
|
@@ -327,6 +334,25 @@ export default { |
|
|
|
}); |
|
|
|
return style; |
|
|
|
}, |
|
|
|
linkCustomerService() { |
|
|
|
// 是否登录 |
|
|
|
if (this.currentAccount) { |
|
|
|
this.queryParams.uid = this.currentAccount.accountId; |
|
|
|
this.queryParams.nickName = this.currentAccount.accountName; |
|
|
|
this.queryParams.phone = this.currentAccount.mobilePhone; |
|
|
|
} |
|
|
|
let url = `http://www.parkkf.com/chat/index?`; |
|
|
|
for (let key in this.queryParams) { |
|
|
|
if ( |
|
|
|
this.queryParams[key] !== "" && |
|
|
|
this.queryParams[key] !== undefined && |
|
|
|
this.queryParams[key] !== null |
|
|
|
) { |
|
|
|
url += `&${key}=${this.queryParams[key]}`; |
|
|
|
} |
|
|
|
} |
|
|
|
window.open(url); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |