Explorar el Código

物业租售详情跳转

master
王饶冀 hace 3 años
padre
commit
9175771206

+ 5
- 4
digital-park-web/digital-park/src/views/investment-service/product-detail/ProductDetail.vue Ver fichero

import { parseMarkdown, formatImg } from "@/utils/common"; import { parseMarkdown, formatImg } from "@/utils/common";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
export default { export default {
...mapGetters({
currentAccount: "currentAccount",
}),
computed: {
...mapGetters({
currentAccount: "currentAccount",
}),
},
data() { data() {
return { return {
pageLoading: false, pageLoading: false,
}); });
}, },
linkCustomerService() { linkCustomerService() {
console.log(1);
// 是否登录 // 是否登录
if (this.currentAccount) { if (this.currentAccount) {
this.queryParams.uid = this.currentAccount.accountId; this.queryParams.uid = this.currentAccount.accountId;

+ 27
- 1
digital-park-web/digital-park/src/views/investment-service/property-detail/PropertyDetail.vue Ver fichero

<span class="mian-detail-span">房源地址:</span> <span class="mian-detail-span">房源地址:</span>
{{ propertyDetail.address }} {{ propertyDetail.address }}
</div> </div>
<div class="main-btn">
<div class="main-btn" @click="linkCustomerService">
<img <img
src="~@assets/image/product/consult-icon.png" src="~@assets/image/product/consult-icon.png"
class="consult-icon" class="consult-icon"
import "./PropertyDetail.scss"; import "./PropertyDetail.scss";
import { getByIdPropertyManage } from "@api/index.js"; import { getByIdPropertyManage } from "@api/index.js";
import { parseMarkdown, formatImg } from "@/utils/common"; import { parseMarkdown, formatImg } from "@/utils/common";
import { mapGetters } from "vuex";
const ListingFacilities = { const ListingFacilities = {
精装修: 1, 精装修: 1,
有线网络: 2, 有线网络: 2,
接发传真: 8, 接发传真: 8,
}; };
export default { export default {
components: { Nav, Footer }, components: { Nav, Footer },
computed: {
...mapGetters({
currentAccount: "currentAccount",
}),
},
data() { data() {
return { return {
pageLoading: false, pageLoading: false,
}); });
return style; 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> </script>

Cargando…
Cancelar
Guardar