From 12252eec5aa571411571c2e85f4256ecfb31aaf6 Mon Sep 17 00:00:00 2001 From: linxi Date: Fri, 20 Sep 2024 12:00:14 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E5=AF=BB=E8=B6=A3=E5=91=B3?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4=20&&=20=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=9F=8E=E5=B8=82=E5=90=8E=E5=9F=8E=E5=B8=82=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E8=A2=AB=E5=BC=BA=E5=88=B6=E6=94=B9=E6=88=90=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E5=9F=8E=E5=B8=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cloud/components/HotelItem.vue | 6 +++--- pages/cloud/haveFun.vue | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pages/cloud/components/HotelItem.vue b/pages/cloud/components/HotelItem.vue index f63f17b..08a3381 100644 --- a/pages/cloud/components/HotelItem.vue +++ b/pages/cloud/components/HotelItem.vue @@ -55,14 +55,14 @@ export default { margin: 20rpx 0 0 0; .cover-box { position: relative; - width: 328rpx; + width: 338rpx; height: auto; border-radius: 14rpx; overflow: hidden; } .cover { - width: 328rpx; - height: 328rpx; + width: 338rpx; + height: 338rpx; vertical-align: middle; } .icon { diff --git a/pages/cloud/haveFun.vue b/pages/cloud/haveFun.vue index 35217df..9c35aee 100644 --- a/pages/cloud/haveFun.vue +++ b/pages/cloud/haveFun.vue @@ -192,7 +192,9 @@ export default { if (map.length > 1) { const {latitude, longitude} = map[1] const address = await getCurAddress(latitude, longitude) - this.cityName = address[1].data.result.ad_info.city + if(!this.cityName) { + this.cityName = address[1].data.result.ad_info.city + } this.search() } }, @@ -347,7 +349,7 @@ export default { display: flex; justify-content: space-between; .list { - width: 328rpx; + width: 348rpx; .item { width: 100%; box-sizing: border-box;