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 @@
ZHELI這裡
-
高颜值高品质学生公寓,城理浸公学生首选
+
{{ info['propaganda'] }}
+
+
+
+
+ + + + + +
+
直播
+
+
1/3
+
+
+
+ +
+
+ + + +
+
+ +
+
+
+
+
+
{{ item }}
+
+
{{ info['title'] }}
+
{{ info['introduction'] }}
+
+
+ + {{ info['address'] }} +
+
+ 位置与交通 + +
+
+
+
+ + 同品牌其他公寓 +
+
+
{{ withsameapartments }}
+ +
+
+
-
+
转发
-
咨询
+
咨询
- - -
+ +
@@ -35,10 +92,11 @@
仅剩{{ item.allowance }}间
{{ it }}
- -
+
+ +
@@ -46,26 +104,29 @@
+
+ +
-
HK$ {{ item['price'] }}/月
+
HK$ {{ item['price'] }}/月
HK$
-
{{ item['discountprice'] }}
+
{{ item['discountprice'] || item['price'] }}
/月
-
咨询
+
咨询 +
已租满
- -
+
优惠活动 @@ -74,7 +135,7 @@
-
+
{{ info.location || '位置' }} @@ -88,8 +149,7 @@
- -
+
房源详情 @@ -98,7 +158,7 @@
-
+
公寓设施 @@ -119,8 +179,7 @@
- -
+
生活 @@ -129,8 +188,7 @@
- -
+
品牌介绍 @@ -174,20 +232,39 @@
-
+
同品牌其他公寓
-
-
+
+
-
ZHELI這裡佐敦学生公寓
-
+
{{ item['title'] }}
+
{{ item['propaganda'] }}
+
+ + {{ item['address'] }} +
+ +
+
+
{{ it['name'] }}
+
+
HK$
+
{{ it['price'] }}
/月 +
+
+
+ +
+ 共
{{ item['roomnum'] }}
个房型 + +
@@ -195,16 +272,58 @@
-
+ + + +
+
+ + + +
+ + + + + + + + +
+
+
+
+
+
+
+ +
+
+ +
{{ item['title'] }}
+
微信扫码添加,备注“寄托”
+
+
+ + +
+
+
+ \ No newline at end of file diff --git a/src/views/user.vue b/src/views/user.vue index 7fb11c1..a46d963 100644 --- a/src/views/user.vue +++ b/src/views/user.vue @@ -161,7 +161,7 @@ const init = () => { count.value = data.count newmessagenum.value = data.newmessagenum validityidentity.value = data.validityidentity - }); + }).finally(()=>{}) }