Przeglądaj źródła

物业租售详情跳转

master
王饶冀 2 lat temu
rodzic
commit
9175771206

+ 5
- 4
digital-park-web/digital-park/src/views/investment-service/product-detail/ProductDetail.vue Wyświetl plik

@@ -43,9 +43,11 @@ import { getByIdServiceProduct } from "@api/index.js";
import { parseMarkdown, formatImg } from "@/utils/common";
import { mapGetters } from "vuex";
export default {
...mapGetters({
currentAccount: "currentAccount",
}),
computed: {
...mapGetters({
currentAccount: "currentAccount",
}),
},
data() {
return {
pageLoading: false,
@@ -94,7 +96,6 @@ export default {
});
},
linkCustomerService() {
console.log(1);
// 是否登录
if (this.currentAccount) {
this.queryParams.uid = this.currentAccount.accountId;

+ 27
- 1
digital-park-web/digital-park/src/views/investment-service/property-detail/PropertyDetail.vue Wyświetl plik

@@ -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>

Ładowanie…
Anuluj
Zapisz