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;