| import "./ProductDetail.scss"; | import "./ProductDetail.scss"; | ||||
| import { getByIdServiceProduct } from "@api/index.js"; | import { getByIdServiceProduct } from "@api/index.js"; | ||||
| import { parseMarkdown, formatImg } from "@/utils/common"; | import { parseMarkdown, formatImg } from "@/utils/common"; | ||||
| import { mapGetters } from "vuex"; | |||||
| import { linkCustomerService } from "@mixin/customerService"; | |||||
| export default { | export default { | ||||
| computed: { | |||||
| ...mapGetters({ | |||||
| currentAccount: "currentAccount", | |||||
| }), | |||||
| }, | |||||
| mixins: [linkCustomerService], | |||||
| data() { | data() { | ||||
| return { | return { | ||||
| pageLoading: false, | pageLoading: false, | ||||
| productDetail: {}, | productDetail: {}, | ||||
| mainImg: "", | mainImg: "", | ||||
| queryParams: { | |||||
| token: "50aa11de78ee5cb27381df1679f24e15", // 与后台交互的凭证 | |||||
| noCanClose: 0, // PC端是否显示广告 | |||||
| uid: "", // 用户ID | |||||
| nickName: "", //用户昵称 | |||||
| phone: "", //用户手机号 | |||||
| }, | |||||
| }; | }; | ||||
| }, | }, | ||||
| mounted() { | mounted() { | ||||
| this.pageLoading = false; | this.pageLoading = false; | ||||
| }); | }); | ||||
| }, | }, | ||||
| 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); | |||||
| }, | |||||
| toPath(path) { | toPath(path) { | ||||
| this.$router.push(path); | this.$router.push(path); | ||||
| }, | }, |
| 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"; | |||||
| import { linkCustomerService } from "@mixin/customerService"; | |||||
| const ListingFacilities = { | const ListingFacilities = { | ||||
| 精装修: 1, | 精装修: 1, | ||||
| 有线网络: 2, | 有线网络: 2, | ||||
| export default { | export default { | ||||
| components: { Nav, Footer }, | components: { Nav, Footer }, | ||||
| computed: { | |||||
| ...mapGetters({ | |||||
| currentAccount: "currentAccount", | |||||
| }), | |||||
| }, | |||||
| mixins: [linkCustomerService], | |||||
| 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> |
| import { sendMsg } from "@/utils/common"; | import { sendMsg } from "@/utils/common"; | ||||
| // 导入cookie操作 | // 导入cookie操作 | ||||
| import { setCookie, getCookie, delCookie } from "@/utils/cookie-util"; | import { setCookie, getCookie, delCookie } from "@/utils/cookie-util"; | ||||
| import { linkCustomerService } from "@mixin/customerService"; | |||||
| export default { | export default { | ||||
| mixins: [linkCustomerService], | |||||
| data() { | data() { | ||||
| return { | return { | ||||
| // 登录loading | // 登录loading | ||||
| this.phoneCodeError = false; | this.phoneCodeError = false; | ||||
| this.mobilePhoneError = false; | this.mobilePhoneError = false; | ||||
| }, | }, | ||||
| // 跳转客服 | |||||
| linkCustomerService() { | |||||
| // 是否登录 | |||||
| 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); | |||||
| }, | |||||
| }, | }, | ||||
| destroyed() { | destroyed() { | ||||
| clearInterval(this.sendTimer); | clearInterval(this.sendTimer); |