diff --git a/src/assets/img/apartmentDetail/add-customer-interior-bj.svg b/src/assets/img/apartmentDetail/add-customer-interior-bj.svg new file mode 100644 index 0000000..372038d --- /dev/null +++ b/src/assets/img/apartmentDetail/add-customer-interior-bj.svg @@ -0,0 +1,12 @@ + + \ No newline at end of file diff --git a/src/assets/img/apartmentDetail/add-customer-interior-bj2.svg b/src/assets/img/apartmentDetail/add-customer-interior-bj2.svg new file mode 100644 index 0000000..fb6e106 --- /dev/null +++ b/src/assets/img/apartmentDetail/add-customer-interior-bj2.svg @@ -0,0 +1,12 @@ + + \ No newline at end of file diff --git a/src/assets/img/apartmentDetail/add-customer-map.svg b/src/assets/img/apartmentDetail/add-customer-map.svg new file mode 100644 index 0000000..34d250a --- /dev/null +++ b/src/assets/img/apartmentDetail/add-customer-map.svg @@ -0,0 +1,11 @@ + + \ No newline at end of file diff --git a/src/assets/img/apartmentDetail/add-customer-map2.svg b/src/assets/img/apartmentDetail/add-customer-map2.svg new file mode 100644 index 0000000..f15c803 --- /dev/null +++ b/src/assets/img/apartmentDetail/add-customer-map2.svg @@ -0,0 +1,11 @@ + + \ No newline at end of file diff --git a/src/assets/img/apartmentDetail/add-customer-title.png b/src/assets/img/apartmentDetail/add-customer-title.png new file mode 100644 index 0000000..e6ccbc2 Binary files /dev/null and b/src/assets/img/apartmentDetail/add-customer-title.png differ diff --git a/src/assets/img/apartmentDetail/add-customer-violet.svg b/src/assets/img/apartmentDetail/add-customer-violet.svg new file mode 100644 index 0000000..f759909 --- /dev/null +++ b/src/assets/img/apartmentDetail/add-customer-violet.svg @@ -0,0 +1,12 @@ + + \ No newline at end of file diff --git a/src/assets/img/apartmentDetail/add-customer-violet2.svg b/src/assets/img/apartmentDetail/add-customer-violet2.svg new file mode 100644 index 0000000..6c7f1b3 --- /dev/null +++ b/src/assets/img/apartmentDetail/add-customer-violet2.svg @@ -0,0 +1,12 @@ + + \ No newline at end of file diff --git a/src/assets/img/apartmentDetail/yellow-diamond.png b/src/assets/img/apartmentDetail/yellow-diamond.png new file mode 100644 index 0000000..467e717 Binary files /dev/null and b/src/assets/img/apartmentDetail/yellow-diamond.png differ diff --git a/src/assets/img/publicImage/gray-arrow.svg b/src/assets/img/publicImage/gray-arrow.svg new file mode 100644 index 0000000..b24433a --- /dev/null +++ b/src/assets/img/publicImage/gray-arrow.svg @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/src/components/public/login.vue b/src/components/public/login.vue index 9a5d3b5..f3615ac 100644 --- a/src/components/public/login.vue +++ b/src/components/public/login.vue @@ -11,7 +11,6 @@ import store from '@/store/index'; let showLoginModal = ref(false); watch(() => store.state.showloginmodal, (newValue) => { - console.log("newValue", newValue); // store.state.showloginmodal = false if (newValue) init1() }); diff --git a/src/utils/axios.js b/src/utils/axios.js index c815f6b..5594cd3 100644 --- a/src/utils/axios.js +++ b/src/utils/axios.js @@ -29,9 +29,10 @@ axios.interceptors.response.use( }, // 服务器状态码不是200的情况 error => { + tryHideFullScreenLoading() if (error.response.status) { switch (error.response.status) { - // 401: 未登录 + // 401: 未登录 case 401: // goTologin() // 跳转登录页面 store.state.showloginmodal = true diff --git a/src/utils/util.js b/src/utils/util.js index 91d8137..3e1bf4e 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -2,6 +2,7 @@ function setSeoTitle(title) { document.title = '港校租房-' + title } +// 跳转 url function redirectToExternalWebsite(url) { const link = document.createElement('a'); link.href = url; @@ -15,8 +16,21 @@ function goTologin() { redirectToExternalWebsite(`https://passport.gter.net/?referer=${url}`); } +// 复制方法 +function copyToClipboard(text) { + + return new Promise((resolve, reject) => { + navigator.clipboard.writeText(text).then(() => { + resolve() + }).catch((err) => { + reject() + }); + }); +} + module.exports = { setSeoTitle, redirectToExternalWebsite, goTologin, + copyToClipboard, } \ No newline at end of file diff --git a/src/views/apartmentDetail.vue b/src/views/apartmentDetail.vue index 678b531..79fc1aa 100644 --- a/src/views/apartmentDetail.vue +++ b/src/views/apartmentDetail.vue @@ -5,27 +5,84 @@